From bc28ca499ef37e5ab6e2676727a3db7f02c837ae 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) --- 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 302696f603b..f20c8ac157a 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -863,7 +863,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