]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix: Check for wrong object. The converted sc should be checked instead of the original s
authorNachel72 <Nachel72@outlook.com>
Wed, 13 Aug 2025 15:15:05 +0000 (23:15 +0800)
committerTodd Short <todd.short@me.com>
Fri, 22 Aug 2025 15:11:20 +0000 (11:11 -0400)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/28248)

(cherry picked from commit bc28ca499ef37e5ab6e2676727a3db7f02c837ae)
(cherry picked from commit 7e8d78d579548a39bf793ace158565ad569b4718)

ssl/d1_lib.c

index 3a2947a45464fc1e9a0c1c0a9dee6c1bb689693d..93d489c88b9a45f999f86fb6585be7d18e7d8df2 100644 (file)
@@ -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);