summaryrefslogtreecommitdiff
path: root/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2021-06-11 11:29:45 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2021-06-11 11:29:45 +0000
commit7ed5d1723b582f6ed9db2d9fd12a63d63dbba04d (patch)
treede91cbb039fdd5fea8009ff96867286f648c0e42 /lib/libssl/d1_both.c
parentb2952d7ab670dac94a17a9b798535c54435849bd (diff)
SSL3_AD_ILLEGAL_PARAMETER is not a valid SSLerror() reason code.
Use SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER instead. ok tb@
Diffstat (limited to 'lib/libssl/d1_both.c')
-rw-r--r--lib/libssl/d1_both.c4
1 files changed, 2 insertions, 2 deletions
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;
}