diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-04-15 11:56:06 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-04-15 14:11:26 +0200 |
commit | 7e9486e064c9ea355e287c9f8160e4e0a21589e9 (patch) | |
tree | abf5e364513bfde6460a5bfac9a9b1bb35c8dd67 /lib/gnutls_buffers.c | |
parent | 3e2ba045b020b871e98eb1650805cade6343f535 (diff) | |
download | gnutls-7e9486e064c9ea355e287c9f8160e4e0a21589e9.tar.gz |
correctly check for message upper limit.
Diffstat (limited to 'lib/gnutls_buffers.c')
-rw-r--r-- | lib/gnutls_buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c index f3c766ac16..272c4573dd 100644 --- a/lib/gnutls_buffers.c +++ b/lib/gnutls_buffers.c @@ -924,7 +924,7 @@ static int merge_handshake_packet(gnutls_session_t session, if (exists == 0) pos = session->internals.handshake_recv_buffer_size; - if (pos > MAX_HANDSHAKE_MSGS) + if (pos >= MAX_HANDSHAKE_MSGS) return gnutls_assert_val(GNUTLS_E_TOO_MANY_HANDSHAKE_PACKETS); |