summaryrefslogtreecommitdiff
path: root/lib/handshake.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-05-07 21:49:16 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-05-07 21:50:03 +0200
commitf03c7a038c0f44cf51c3464c6f50df7b44638928 (patch)
tree89b3a2abb6bdc5d55a459db7d9c7e5817b43b135 /lib/handshake.c
parentf92ef316d3529ac3c38e697b1e41b572e1d922f3 (diff)
downloadgnutls-f03c7a038c0f44cf51c3464c6f50df7b44638928.tar.gz
handshake: use GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER consistently
Also treat GNUTLS_E_ILLEGAL_PARAMETER as a synonym if returned during a connection. Relates #442 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/handshake.c')
-rw-r--r--lib/handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handshake.c b/lib/handshake.c
index 18c0974ca4..e756574277 100644
--- a/lib/handshake.c
+++ b/lib/handshake.c
@@ -1717,7 +1717,7 @@ read_server_hello(gnutls_session_t session,
if (len < session_id_len || session_id_len > GNUTLS_MAX_SESSION_ID_SIZE) {
gnutls_assert();
- return GNUTLS_E_ILLEGAL_PARAMETER;
+ return GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER;
}
DECR_LEN(len, session_id_len);
session_id = &data[pos];