diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 8296ea1f5c43cd270ab1dd5a2825e1bd801738eb..b6e878ae214c48b5df91d0f81f07dcc2d18ac480 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -3910,10 +3910,10 @@ int tls1_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain, # endif } else { if (!x || !pk) - goto end; + return 0; idx = ssl_cert_type(x, pk); if (idx == -1) - goto end; + return 0; cpk = c->pkeys + idx; if (c->cert_flags & SSL_CERT_FLAGS_CHECK_TLS_STRICT) check_flags = CERT_PKEY_STRICT_FLAGS;