From: Adriaan de Jong Date: Fri, 1 Jul 2011 15:31:44 +0000 (+0200) Subject: Fixed a bug in the hash generation in ssl_verify_openssl.c X-Git-Tag: v2.3-alpha1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f25d29c9b239b757f5391f0fb1a7353ec6b8bbcf;p=thirdparty%2Fopenvpn.git Fixed a bug in the hash generation in ssl_verify_openssl.c Signed-off-by: Adriaan de Jong Acked-by: James Yonan Acked-by: Gert Doering Signed-off-by: David Sommerseth --- diff --git a/ssl_verify_openssl.c b/ssl_verify_openssl.c index e49363e1c..8bcdc100e 100644 --- a/ssl_verify_openssl.c +++ b/ssl_verify_openssl.c @@ -229,7 +229,7 @@ x509_get_sha1_hash (X509 *cert) { char *hash = malloc(SHA_DIGEST_LENGTH); memcpy(hash, cert->sha1_hash, SHA_DIGEST_LENGTH); - return cert->sha1_hash; + return hash; } void