Skip to content

Commit

Permalink
Check SSL_set1_chain error in set_cert_cb
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from openssl#14469)
  • Loading branch information
mamapanda authored and t8m committed Mar 11, 2021
1 parent bf23b9a commit 1aa7ecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/lib/s_cb.c
Expand Up @@ -952,7 +952,8 @@ static int set_cert_cb(SSL *ssl, void *arg)
if (!SSL_build_cert_chain(ssl, 0))
return 0;
} else if (exc->chain != NULL) {
SSL_set1_chain(ssl, exc->chain);
if (!SSL_set1_chain(ssl, exc->chain))
return 0;
}
}
exc = exc->prev;
Expand Down

0 comments on commit 1aa7ecd

Please sign in to comment.