diff options
author | levitte <levitte> | 2002-05-30 16:47:21 +0000 |
---|---|---|
committer | levitte <levitte> | 2002-05-30 16:47:21 +0000 |
commit | 7ce6d75ae8dad313bf150305ebb72f55a8fa23a9 (patch) | |
tree | ef2cdf5281f81cd0875b48b12ab6e3430a271990 /crypto/txt_db | |
parent | 34b4589abffc111e3640b55cb95578cd185896c2 (diff) | |
download | openssl-7ce6d75ae8dad313bf150305ebb72f55a8fa23a9.tar.gz |
Check the return values where memory allocation failures may happen.
PR: 49
Diffstat (limited to 'crypto/txt_db')
-rw-r--r-- | crypto/txt_db/txt_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/txt_db/txt_db.c b/crypto/txt_db/txt_db.c index e6334d6ad..9b186f2da 100644 --- a/crypto/txt_db/txt_db.c +++ b/crypto/txt_db/txt_db.c @@ -122,7 +122,7 @@ TXT_DB *TXT_DB_read(BIO *in, int num) else { buf->data[offset-1]='\0'; /* blat the '\n' */ - p=(char *)OPENSSL_malloc(add+offset); + if (!(p=(char *)OPENSSL_malloc(add+offset))) goto err; offset=0; } pp=(char **)p; |