From: Tomas Mraz Date: Wed, 4 Jun 2025 16:19:48 +0000 (+0200) Subject: dtls1_read_bytes(): Fix backported patch for no renegotiation X-Git-Tag: openssl-3.0.17~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1bccde1a76cb3c2b9204093083b8704b81ac37f;p=thirdparty%2Fopenssl.git dtls1_read_bytes(): Fix backported patch for no renegotiation Reviewed-by: Neil Horman Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/27762) --- diff --git a/ssl/record/rec_layer_d1.c b/ssl/record/rec_layer_d1.c index b9163e239d0..9020600d56c 100644 --- a/ssl/record/rec_layer_d1.c +++ b/ssl/record/rec_layer_d1.c @@ -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) {