projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41cf2d2
)
Oops, get selection logic right.
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 5 Feb 2014 18:55:37 +0000
(18:55 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 5 Feb 2014 18:57:23 +0000
(18:57 +0000)
(cherry picked from commit
3880579240d476d21f68fd01a391dd325920f479
)
ssl/s3_lib.c
patch
|
blob
|
history
diff --git
a/ssl/s3_lib.c
b/ssl/s3_lib.c
index e35f18c5d89c05d24b44def96b9e2ef3b521a233..372910f573c8e4f13390884695029ef4159d3d25 100644
(file)
--- a/
ssl/s3_lib.c
+++ b/
ssl/s3_lib.c
@@
-3914,9
+3914,10
@@
long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg)
break;
case SSL_CTRL_GET_EXTRA_CHAIN_CERTS:
- *(STACK_OF(X509) **)parg = ctx->extra_certs;
- if (parg == NULL && larg == 0)
+ if (ctx->extra_certs == NULL && larg == 0)
*(STACK_OF(X509) **)parg = ctx->cert->key->chain;
+ else
+ *(STACK_OF(X509) **)parg = ctx->extra_certs;
break;
case SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS: