mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Merge pull request #178 from mfleisz/cryptofix
core: Added missing \0 termination to crypto_print_name
This commit is contained in:
@@ -287,8 +287,8 @@ 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);
|
||||
buffer = xzalloc(size);
|
||||
memset(buffer, 0, size);
|
||||
buffer = xzalloc(size + 1);
|
||||
memset(buffer, 0, size + 1);
|
||||
BIO_read(outBIO, buffer, size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user