Module Name:    src
Committed By:   tteras
Date:           Wed Apr 29 10:50:02 UTC 2009

Modified Files:
        src/crypto/dist/ipsec-tools/src/racoon: crypto_openssl.c

Log Message:
>From Ross Meng: Fix a memory leak in X509 certificate validation.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 \
    src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
diff -u src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c:1.18 src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c:1.19
--- src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c:1.18	Mon Apr 20 13:22:41 2009
+++ src/crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c	Wed Apr 29 10:50:01 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: crypto_openssl.c,v 1.18 2009/04/20 13:22:41 tteras Exp $	*/
+/*	$NetBSD: crypto_openssl.c,v 1.19 2009/04/29 10:50:01 tteras Exp $	*/
 
 /* Id: crypto_openssl.c,v 1.47 2006/05/06 20:42:09 manubsd Exp */
 
@@ -510,7 +510,7 @@
 	X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK_ALL);
 #endif
 	error = X509_verify_cert(csc);
-	X509_STORE_CTX_cleanup(csc);
+	X509_STORE_CTX_free(csc);
 
 	/*
 	 * if x509_verify_cert() is successful then the value of error is

Reply via email to