From 4a6c0602d0cb39e4d616bb2aa43c8fd5b5d7efe5 Mon Sep 17 00:00:00 2001 From: Martin Fleisz Date: Fri, 21 Oct 2011 01:55:28 -0700 Subject: [PATCH] core: Fixed error in crypto_print_name causing it to always return NULL --- libfreerdp-core/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp-core/crypto.c b/libfreerdp-core/crypto.c index de7394c1d..c6fa38542 100644 --- a/libfreerdp-core/crypto.c +++ b/libfreerdp-core/crypto.c @@ -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); }