From: jsing Date: Fri, 11 Jun 2021 11:29:44 +0000 (+0000) Subject: SSL3_AD_ILLEGAL_PARAMETER is not a valid SSLerror() reason code. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=db8264de5e686d467fdfaede154dd2a2b3b1dc3d;p=openbsd SSL3_AD_ILLEGAL_PARAMETER is not a valid SSLerror() reason code. Use SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER instead. ok tb@ --- diff --git a/lib/libssl/d1_both.c b/lib/libssl/d1_both.c index ad7c03b518e..8e734f1277c 100644 --- a/lib/libssl/d1_both.c +++ b/lib/libssl/d1_both.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_both.c,v 1.73 2021/06/11 11:13:53 jsing Exp $ */ +/* $OpenBSD: d1_both.c,v 1.74 2021/06/11 11:29:44 jsing Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -842,7 +842,7 @@ dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok) */ if (i != (int)frag_len) { al = SSL3_AD_ILLEGAL_PARAMETER; - SSLerror(s, SSL3_AD_ILLEGAL_PARAMETER); + SSLerror(s, SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER); goto fatal_err; }