mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4:gensec_tstream: allow wrapped messages up to a size of 0xfffffff
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11872 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
parent
415872990e
commit
8704958fb3
@ -253,7 +253,11 @@ static int tstream_gensec_readv_next_vector(struct tstream_context *unix_stream,
|
||||
|
||||
msg_len = RIVAL(state->wrapped.hdr, 0);
|
||||
|
||||
if (msg_len > 0x00FFFFFF) {
|
||||
/*
|
||||
* I got a Windows 2012R2 server responding with
|
||||
* a message of 0x1b28a33.
|
||||
*/
|
||||
if (msg_len > 0x0FFFFFFF) {
|
||||
errno = EMSGSIZE;
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user