summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
-rw-r--r--src/lib/libssl/ssl_srvr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c
index ec1e69a8bb..42f64bf86d 100644
--- a/src/lib/libssl/ssl_srvr.c
+++ b/src/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_srvr.c,v 1.122 2021/10/23 14:40:54 jsing Exp $ */ 1/* $OpenBSD: ssl_srvr.c,v 1.123 2021/10/25 10:01:46 jsing 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 *
@@ -2433,15 +2433,15 @@ ssl3_get_client_certificate(SSL *s)
2433 * With the current implementation, sess_cert will always be NULL 2433 * With the current implementation, sess_cert will always be NULL
2434 * when we arrive here 2434 * when we arrive here
2435 */ 2435 */
2436 if (SSI(s)->sess_cert == NULL) { 2436 if (s->session->sess_cert == NULL) {
2437 SSI(s)->sess_cert = ssl_sess_cert_new(); 2437 s->session->sess_cert = ssl_sess_cert_new();
2438 if (SSI(s)->sess_cert == NULL) { 2438 if (s->session->sess_cert == NULL) {
2439 SSLerror(s, ERR_R_MALLOC_FAILURE); 2439 SSLerror(s, ERR_R_MALLOC_FAILURE);
2440 goto err; 2440 goto err;
2441 } 2441 }
2442 } 2442 }
2443 sk_X509_pop_free(SSI(s)->sess_cert->cert_chain, X509_free); 2443 sk_X509_pop_free(s->session->sess_cert->cert_chain, X509_free);
2444 SSI(s)->sess_cert->cert_chain = sk; 2444 s->session->sess_cert->cert_chain = sk;
2445 2445
2446 /* 2446 /*
2447 * Inconsistency alert: cert_chain does *not* include the 2447 * Inconsistency alert: cert_chain does *not* include the