From: Richard Levitte Date: Sat, 16 Apr 2016 10:57:09 +0000 (+0200) Subject: Small OCSP fixup X-Git-Tag: OpenSSL_1_1_0-pre5~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=64a1385a83a0d1d2b4e47889898d784ba2745f71;p=oweals%2Fopenssl.git Small OCSP fixup Reviewed-by: Matt Caswell Reviewed-by: Stephen Henson --- diff --git a/crypto/ocsp/ocsp_vfy.c b/crypto/ocsp/ocsp_vfy.c index aba623c798..16931caf2e 100644 --- a/crypto/ocsp/ocsp_vfy.c +++ b/crypto/ocsp/ocsp_vfy.c @@ -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;