[gnutls-devel] GnuTLS | Fix interleaved handshake handling in TLS 1.3 (!708)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Aug 1 11:56:19 CEST 2018


Nikos Mavrogiannopoulos started a new discussion on lib/buffers.c:

>  			} else {	/* received new message */
> +				if (unlikely
> +				    (session->internals.
> +				     handshake_header_recv_buffer.length > 0)) {
> +					bufel = _mbuffer_head_pop_first(&session->internals.
> +									record_buffer);
> +					_mbuffer_enqueue(&session->internals.
> +							 handshake_header_recv_buffer,
> +							 bufel);
> +					ret = _mbuffer_linearize_align16(&session->internals.
> +									 handshake_header_recv_buffer,
> +									 get_total_headers(session));
> +					if (ret < 0)
> +						return gnutls_assert_val(ret);
> +					bufel = _mbuffer_head_pop_first(&session->internals.
> +									handshake_header_recv_buffer);

LGTM. Nice clean fix

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/708#note_91778212
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20180801/92654ed5/attachment.html>


More information about the Gnutls-devel mailing list