diff options
author | James Yonan <james@openvpn.net> | 2010-11-16 08:36:18 +0000 |
---|---|---|
committer | James Yonan <james@openvpn.net> | 2010-11-16 08:36:18 +0000 |
commit | b2dee7d568d4f31e2c2c8aba5de5ac02147c6b6b (patch) | |
tree | a2729a39d09e08d65dfd65cbdd8c541edd98a4eb /ssl.c | |
parent | Version 2.1.3b (diff) | |
download | openvpn-b2dee7d568d4f31e2c2c8aba5de5ac02147c6b6b.tar.xz |
In verify_callback, the subject var should be freed by OPENSSL_free,
not free, since it is allocated by OpenSSL.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6655 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'ssl.c')
-rw-r--r-- | ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -993,13 +993,13 @@ verify_callback (int preverify_ok, X509_STORE_CTX * ctx) msg (D_HANDSHAKE, "VERIFY OK: depth=%d, %s", ctx->error_depth, subject); session->verified = true; - free (subject); + OPENSSL_free (subject); argv_reset (&argv); return 1; /* Accept connection */ err: ERR_clear_error (); - free (subject); + OPENSSL_free (subject); argv_reset (&argv); return 0; /* Reject connection */ } |