aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-03-08 22:56:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-03-08 22:56:55 +0000
commitf4e8c406bbb279eb8d96576475c808c2c769c687 (patch)
tree888a8570dd5e33a9830a51049e9a1d1a5201899e /lib
parent12bfcb501c82f7a0911a8ee92b5e8143225ce207 (diff)
- Andre Guibert de Bruet found and fixed a code segment in ssluse.c where the
allocation of the memory BIO was not being properly checked.
Diffstat (limited to 'lib')
-rw-r--r--lib/ssluse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index cb2a2163d..eb645d5e7 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -565,6 +565,9 @@ static int x509_name_oneline(X509_NAME *a, char *buf, size_t size)
BUF_MEM *biomem;
int rc;
+ if(!bio_out)
+ return 1; /* alloc failed! */
+
rc = X509_NAME_print_ex(bio_out, a, 0, XN_FLAG_SEP_CPLUS_SPC);
BIO_get_mem_ptr(bio_out, &biomem);