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.
This commit is contained in:
parent
aa2b6baf4f
commit
c707fb2741
@ -152,7 +152,7 @@ int ssl_cert_instantiate(CERT **o, CERT *d)
|
|||||||
SSLerr(SSL_F_SSL_CERT_INSTANTIATE, ERR_R_PASSED_NULL_PARAMETER);
|
SSLerr(SSL_F_SSL_CERT_INSTANTIATE, ERR_R_PASSED_NULL_PARAMETER);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
if (*o != NULL && d != NULL && *o != d)
|
if (*o != NULL && (d == NULL || *o != d))
|
||||||
return(1);
|
return(1);
|
||||||
if ((n = ssl_cert_new()) == NULL)
|
if ((n = ssl_cert_new()) == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user