From 64a1385a83a0d1d2b4e47889898d784ba2745f71 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sat, 16 Apr 2016 12:57:09 +0200 Subject: [PATCH] Small OCSP fixup Reviewed-by: Matt Caswell Reviewed-by: Stephen Henson --- crypto/ocsp/ocsp_vfy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1