aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-11-15 10:00:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-11-15 10:00:20 +0000
commitdfe01180339243fefb79f4d720bc103767aea393 (patch)
tree66a3a05bff0af4fdc61793eac2e3a1eb18fd2aa5
parenta701f3dddf5695f15a833ca7fbc75fa5bd6818f1 (diff)
Mathias Axelsson found a case where we free()d the server certificate twice!
-rw-r--r--lib/ssluse.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 67e457ce2..b0203fd46 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -863,7 +863,6 @@ static CURLcode verifyhost(struct connectdata *conn)
if(data->set.ssl.verifyhost > 1) {
failf(data,
"SSL: unable to obtain common name from peer certificate");
- X509_free(conn->ssl.server_cert);
return CURLE_SSL_PEER_CERTIFICATE;
}
else {
@@ -880,7 +879,6 @@ static CURLcode verifyhost(struct connectdata *conn)
if(data->set.ssl.verifyhost > 1) {
failf(data, "SSL: certificate subject name '%s' does not match "
"target host name '%s'", peer_CN, conn->hostname);
- X509_free(conn->ssl.server_cert);
return CURLE_SSL_PEER_CERTIFICATE;
}
else