]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed a bug in the hash generation in ssl_verify_openssl.c
authorAdriaan de Jong <dejong@fox-it.com>
Fri, 1 Jul 2011 15:31:44 +0000 (17:31 +0200)
committerDavid Sommerseth <davids@redhat.com>
Sat, 22 Oct 2011 12:35:16 +0000 (14:35 +0200)
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: James Yonan <james@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
ssl_verify_openssl.c

index e49363e1c2cd7dbf5379739e7e0f053eb540a489..8bcdc100e850e26018badca1215b22902ec01b35 100644 (file)
@@ -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