From f4e8c406bbb279eb8d96576475c808c2c769c687 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 8 Mar 2009 22:56:55 +0000 Subject: - 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. --- lib/ssluse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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); -- cgit v1.2.3