A correction from the main trunk that was forgotten.

This commit is contained in:
Richard Levitte
2001-03-13 14:39:51 +00:00
parent a411eaa858
commit 5098bc92f8

View File

@@ -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;