summaryrefslogtreecommitdiffstats
path: root/ssl/s3_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-07-16 16:32:35 +0200
committerMatt Caswell <matt@openssl.org>2019-07-17 13:31:57 +0200
commit7bc82358ae930cfbd353602bc1fd25bfad107350 (patch)
tree78ecd7165bed5537c171a4b07611a83aa6d6d5f9 /ssl/s3_lib.c
parentParameter building utilities. (diff)
downloadopenssl-7bc82358ae930cfbd353602bc1fd25bfad107350.tar.xz
openssl-7bc82358ae930cfbd353602bc1fd25bfad107350.zip
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 <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/9395)
Diffstat (limited to '')
-rw-r--r--ssl/s3_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
index 3238fd9b7e..8a22d01325 100644
--- a/ssl/s3_lib.c
+++ b/ssl/s3_lib.c
@@ -3552,6 +3552,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: