Small OCSP fixup

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
This commit is contained in:
Richard Levitte
2016-04-16 12:57:09 +02:00
parent f0e0fd51fd
commit 64a1385a83

View File

@@ -151,7 +151,7 @@ int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
/* If fatal error or valid match then finish */
if (ret != 0)
goto err;
goto end;
/*
* Easy case: explicitly trusted. Get root CA and check for explicit
@@ -166,8 +166,8 @@ int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
goto err;
}
ret = 1;
goto end;
}
goto end;
err:
ret = 0;