From: Richard Levitte Date: Tue, 13 Mar 2001 15:51:51 +0000 (+0000) Subject: Merge in recent changes from OpenSSL-0_9_6-stable X-Git-Tag: OpenSSL-engine-0_9_6a-beta1~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b4ac8b1e0a30f93461ef9e26b518fb7d7cbda2b6;p=oweals%2Fopenssl.git Merge in recent changes from OpenSSL-0_9_6-stable --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 0efbf20a1b..1fe85b6cb7 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1685,6 +1685,10 @@ SSL *SSL_dup(SSL *s) if (s->cert != NULL) { + if (ret->cert != NULL) + { + ssl_cert_free(ret->cert); + } ret->cert = ssl_cert_dup(s->cert); if (ret->cert == NULL) goto err;