diff options
author | Richard Levitte <levitte@openssl.org> | 2002-05-30 16:47:45 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-05-30 16:47:45 +0000 |
commit | 9cdf87f19431b32a50b12e468cf2a9557cfc3568 (patch) | |
tree | 5aa5e1f88093d6b8013b9e2f1af0b18201b9bef6 /crypto/bio | |
parent | a81e9d3dc45f29c1a5fde7fa641a43f796fe92d4 (diff) | |
download | openssl-9cdf87f19431b32a50b12e468cf2a9557cfc3568.zip openssl-9cdf87f19431b32a50b12e468cf2a9557cfc3568.tar.gz openssl-9cdf87f19431b32a50b12e468cf2a9557cfc3568.tar.bz2 |
Check the return values where memory allocation failures may happen.
PR: 49
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bf_nbio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bf_nbio.c b/crypto/bio/bf_nbio.c index c193e9d..1ce2bfa 100644 --- a/crypto/bio/bf_nbio.c +++ b/crypto/bio/bf_nbio.c @@ -103,7 +103,7 @@ static int nbiof_new(BIO *bi) { NBIO_TEST *nt; - nt=(NBIO_TEST *)OPENSSL_malloc(sizeof(NBIO_TEST)); + if (!(nt=(NBIO_TEST *)OPENSSL_malloc(sizeof(NBIO_TEST)))) return(0); nt->lrn= -1; nt->lwn= -1; bi->ptr=(char *)nt; |