From beeaa8d06e68b22733f0df0c8cc7dcd42adad360 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 16 Jul 2019 15:32:35 +0100 Subject: [PATCH] Fix the return value for SSL_get0_chain_certs() This function was always returning 0. It should return 1 on success. Fixes #9374 Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/9395) (cherry picked from commit 7bc82358ae930cfbd353602bc1fd25bfad107350) --- ssl/s3_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index d7dbf99954..55c0192d29 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -3567,6 +3567,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) case SSL_CTRL_GET_CHAIN_CERTS: *(STACK_OF(X509) **)parg = s->cert->key->chain; + ret = 1; break; case SSL_CTRL_SELECT_CURRENT_CERT: -- 2.25.1