diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-12-09 09:52:20 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-12-09 09:52:26 +0100 |
commit | c9f4970a9c497fe1690a0432ae19e9db901d2899 (patch) | |
tree | 62713d66bfa6df186280eddff06f0409654fbdf9 | |
parent | 21207fe09ab75cb6ac03c3caf2f16c4e0d85b791 (diff) | |
download | gnutls-c9f4970a9c497fe1690a0432ae19e9db901d2899.tar.gz |
handshake: return GNUTLS_E_ILLEGAL_PARAMETER on invalid ID size
This is a more sensible error code to return on invalid packet.
-rw-r--r-- | lib/handshake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handshake.c b/lib/handshake.c index 930cf28895..b6c72fd198 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -1797,7 +1797,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_UNSUPPORTED_VERSION_PACKET; + return GNUTLS_E_ILLEGAL_PARAMETER; } DECR_LEN(len, session_id_len); |