]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
dtls1_read_bytes(): Fix backported patch for no renegotiation
authorTomas Mraz <tomas@openssl.org>
Wed, 4 Jun 2025 16:19:48 +0000 (18:19 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 4 Jun 2025 16:19:48 +0000 (18:19 +0200)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27762)

ssl/record/rec_layer_d1.c

index b9163e239d0039aab71dbb9134245a507ec732d9..9020600d56c7c4ba21d7ba31efade27bd59ed15a 100644 (file)
@@ -615,7 +615,7 @@ int dtls1_read_bytes(SSL *s, int type, int *recvd_type, unsigned char *buf,
                  * the future we might have a renegotiation where we don't care
                  * if the peer refused it where we carry on.
                  */
-                SSLfatal(sc, SSL_AD_HANDSHAKE_FAILURE, SSL_R_NO_RENEGOTIATION);
+                SSLfatal(s, SSL_AD_HANDSHAKE_FAILURE, SSL_R_NO_RENEGOTIATION);
                 return -1;
             }
         } else if (alert_level == SSL3_AL_FATAL) {