diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-05-27 21:15:38 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-05-27 21:15:38 +0000 |
commit | eecb7136164ac60567c28b2386e291106aaee1de (patch) | |
tree | dc95440aaf514acb9ec5d2e3aa61c2f612b2ccc9 /lib | |
parent | bf085e2c4b314a6cef38adfe6c9d84ea1b7fa0f3 (diff) |
- Andre Guibert de Bruet found a call to a OpenSSL function that didn't check
for a failure properly.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 6cb2c8462..90bdfc262 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -1789,11 +1789,14 @@ static int X509V3_ext(struct SessionHandle *data, for (i=0; i<sk_X509_EXTENSION_num(exts); i++) { ASN1_OBJECT *obj; X509_EXTENSION *ext = sk_X509_EXTENSION_value(exts, i); - BIO *bio_out = BIO_new(BIO_s_mem()); BUF_MEM *biomem; char buf[512]; char *ptr=buf; char namebuf[128]; + BIO *bio_out = BIO_new(BIO_s_mem()); + + if(!bio_out) + return 1; obj = X509_EXTENSION_get_object(ext); |