1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-21 03:33:16 +03:00

s3:libsmb: check that max_xmit is not less than 1024

metze
This commit is contained in:
Stefan Metzmacher
2011-09-13 16:02:16 +02:00
parent 09547b24ff
commit 53c0f001f2

View File

@@ -2733,6 +2733,11 @@ static void cli_negprot_done(struct tevent_req *subreq)
cli->max_xmit = 1024;
}
if (cli->max_xmit < 1024) {
tevent_req_nterror(req, NT_STATUS_INVALID_NETWORK_RESPONSE);
return;
}
cli->max_xmit = MIN(cli->max_xmit, CLI_BUFFER_SIZE);
/* a way to force ascii SMB */