core: Fixed error in crypto_print_name causing it to always return NULL
This commit is contained in:
parent
5f7aafd7aa
commit
4a6c0602d0
@ -287,7 +287,7 @@ char* crypto_print_name(X509_NAME* name)
|
||||
if(X509_NAME_print_ex(outBIO, name, 0, XN_FLAG_ONELINE) > 0)
|
||||
{
|
||||
unsigned long size = BIO_number_written(outBIO);
|
||||
char* buffer = xzalloc(size);
|
||||
buffer = xzalloc(size);
|
||||
memset(buffer, 0, size);
|
||||
BIO_read(outBIO, buffer, size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user