diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/txt_db/txt_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/txt_db/txt_db.c b/src/lib/libcrypto/txt_db/txt_db.c index e6334d6add..9b186f2da5 100644 --- a/src/lib/libcrypto/txt_db/txt_db.c +++ b/src/lib/libcrypto/txt_db/txt_db.c | |||
@@ -122,7 +122,7 @@ TXT_DB *TXT_DB_read(BIO *in, int num) | |||
122 | else | 122 | else |
123 | { | 123 | { |
124 | buf->data[offset-1]='\0'; /* blat the '\n' */ | 124 | buf->data[offset-1]='\0'; /* blat the '\n' */ |
125 | p=(char *)OPENSSL_malloc(add+offset); | 125 | if (!(p=(char *)OPENSSL_malloc(add+offset))) goto err; |
126 | offset=0; | 126 | offset=0; |
127 | } | 127 | } |
128 | pp=(char **)p; | 128 | pp=(char **)p; |