Commit 9547982e authored by Benjamin Kaduk's avatar Benjamin Kaduk Committed by Rich Salz
Browse files

Remove dead-code infinite loop



Commit d32f5d87 added a 'goto end;' statement
at the end of the code block for the 'end' label.  Fortunately, it was after a
return statement, so no infinite loop occurred, but it is still dead code.

Remove the extra goto statement as cleanup.

Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 8b12d59b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -176,7 +176,6 @@ int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
    if (bs->certs && certs)
        sk_X509_free(untrusted);
    return ret;
    goto end;

 err:
    ret = 0;