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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user