diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-09-08 10:44:41 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-09-08 10:44:41 +0200 |
commit | 6615652177b530e16d13f23a61f76a689d672145 (patch) | |
tree | d7b7bb2637437b1f15e20802ea8b241f6e178b5b /lib/gnutls_buffers.c | |
parent | f26cb633e0c99e1b28928d616a5a850e3e32f91e (diff) | |
download | gnutls-6615652177b530e16d13f23a61f76a689d672145.tar.gz |
dtls: when discarding packet, discard the correct number of bytes
Diffstat (limited to 'lib/gnutls_buffers.c')
-rw-r--r-- | lib/gnutls_buffers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c index 5aa4d09197..38fafec880 100644 --- a/lib/gnutls_buffers.c +++ b/lib/gnutls_buffers.c @@ -163,7 +163,6 @@ _gnutls_record_buffer_get(content_type_t type, int _gnutls_record_buffer_get_packet(content_type_t type, gnutls_session_t session, gnutls_packet_t *packet) { - gnutls_datum_t msg; mbuffer_st *bufel; bufel = @@ -181,7 +180,7 @@ _gnutls_record_buffer_get_packet(content_type_t type, gnutls_session_t session, (int) bufel->type, _gnutls_packet2str(type)); _mbuffer_head_remove_bytes(&session->internals. - record_buffer, msg.size); + record_buffer, bufel->msg.size); return gnutls_assert_val(GNUTLS_E_UNEXPECTED_PACKET); } |