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 #14469)

(cherry picked from commit 1aa7ecd)
  • Loading branch information
mamapanda authored and t8m committed Mar 12, 2021
1 parent 01b9e18 commit 081a706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/s_cb.c
Expand Up @@ -934,7 +934,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 081a706

Please sign in to comment.