summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authortb <>2023-05-26 13:44:05 +0000
committertb <>2023-05-26 13:44:05 +0000
commit60f03123a4643b375e7e15b8d8dd32beeba4deac (patch)
treedaccb0dca5b73ba21fde8f92a694ce06f7aeebf4 /src/lib/libssl/ssl_lib.c
parentd9e5f520e02c69e7bb007ce9e7466dbf19dad201 (diff)
downloadopenbsd-60f03123a4643b375e7e15b8d8dd32beeba4deac.tar.gz
openbsd-60f03123a4643b375e7e15b8d8dd32beeba4deac.tar.bz2
openbsd-60f03123a4643b375e7e15b8d8dd32beeba4deac.zip
Move verified_chain from SSL to SSL_HANDSHAKE
This is a better version of the fix for the missing pointer invalidation but a bit larger, so errata got the minimal fix. tested by jcs ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r--src/lib/libssl/ssl_lib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c
index 68e60a5481..f6c9406139 100644
--- a/src/lib/libssl/ssl_lib.c
+++ b/src/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_lib.c,v 1.309 2023/04/23 18:51:53 tb Exp $ */ 1/* $OpenBSD: ssl_lib.c,v 1.310 2023/05/26 13:44:05 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -900,7 +900,9 @@ SSL_get_peer_cert_chain(const SSL *s)
900STACK_OF(X509) * 900STACK_OF(X509) *
901SSL_get0_verified_chain(const SSL *s) 901SSL_get0_verified_chain(const SSL *s)
902{ 902{
903 return s->verified_chain; 903 if (s->s3 == NULL)
904 return NULL;
905 return s->s3->hs.verified_chain;
904} 906}
905 907
906/* 908/*