summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_cert.c
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-02-26 22:31:54 +0000
committerRalf S. Engelschall <rse@openssl.org>1999-02-26 22:31:54 +0000
commitc707fb2741b34018de6bdf2e45cba4b4b6ab38c0 (patch)
tree9e6189440198c9f11267934be043071489ab15cd /ssl/ssl_cert.c
parentaa2b6baf4f01ec44f81f85cce508691281d2d2a2 (diff)
Ops, the logic of the second argument has to be coupled with the != test to
work correctly for the SSL_CTX_xxx situations, too. Now "make test" passes again fine.
Diffstat (limited to 'ssl/ssl_cert.c')
-rw-r--r--ssl/ssl_cert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c
index e5e1b9998e..9f06b6966d 100644
--- a/ssl/ssl_cert.c
+++ b/ssl/ssl_cert.c
@@ -152,7 +152,7 @@ int ssl_cert_instantiate(CERT **o, CERT *d)
SSLerr(SSL_F_SSL_CERT_INSTANTIATE, ERR_R_PASSED_NULL_PARAMETER);
return(0);
}
- if (*o != NULL && d != NULL && *o != d)
+ if (*o != NULL && (d == NULL || *o != d))
return(1);
if ((n = ssl_cert_new()) == NULL)
{