mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
- 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.
This commit is contained in:
parent
12bfcb501c
commit
f4e8c406bb
3 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue