One more typo when changing !result to result <= 0
This commit is contained in:
parent
90b70a6a6b
commit
eef1827f89
@ -763,7 +763,7 @@ static int check_id(X509_STORE_CTX *ctx)
|
|||||||
X509_VERIFY_PARAM *vpm = ctx->param;
|
X509_VERIFY_PARAM *vpm = ctx->param;
|
||||||
X509_VERIFY_PARAM_ID *id = vpm->id;
|
X509_VERIFY_PARAM_ID *id = vpm->id;
|
||||||
X509 *x = ctx->cert;
|
X509 *x = ctx->cert;
|
||||||
if (id->hosts && !check_hosts(x, id) <= 0)
|
if (id->hosts && check_hosts(x, id) <= 0)
|
||||||
{
|
{
|
||||||
if (!check_id_error(ctx, X509_V_ERR_HOSTNAME_MISMATCH))
|
if (!check_id_error(ctx, X509_V_ERR_HOSTNAME_MISMATCH))
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user