From: Richard Levitte Date: Tue, 13 Mar 2001 14:39:51 +0000 (+0000) Subject: A correction from the main trunk that was forgotten. X-Git-Tag: OpenSSL_0_9_6a-beta1~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5098bc92f82fbc797b6b9e077ab68258a1e66c73;p=oweals%2Fopenssl.git A correction from the main trunk that was forgotten. --- 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;