From: Nachel72 Date: Wed, 13 Aug 2025 15:15:05 +0000 (+0800) Subject: Fix: Check for wrong object. The converted sc should be checked instead of the original s X-Git-Tag: openssl-3.2.6~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35d9fd1090e4d0c48151341dbde0fbc5c006619c;p=thirdparty%2Fopenssl.git 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) (cherry picked from commit 66f7afbb98fa47efea3972698f8daaa463252e51) --- diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index bac18c4651f..b7c48ec673d 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);