From 66f7afbb98fa47efea3972698f8daaa463252e51 Mon Sep 17 00:00:00 2001 From: Nachel72 Date: Wed, 13 Aug 2025 23:15:05 +0800 Subject: [PATCH] Fix: Check for wrong object. The converted sc should be checked instead of the original s Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: Shane Lontis Reviewed-by: Todd Short (Merged from https://github.com/openssl/openssl/pull/28248) (cherry picked from commit bc28ca499ef37e5ab6e2676727a3db7f02c837ae) (cherry picked from commit 7e8d78d579548a39bf793ace158565ad569b4718) --- ssl/d1_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index 3a2947a4546..93d489c88b9 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -861,7 +861,7 @@ int dtls1_shutdown(SSL *s) BIO *wbio; SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL_ONLY(s); - if (s == NULL) + if (sc == NULL) return -1; wbio = SSL_get_wbio(s); -- 2.47.3