mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Remove a pointles call to smb_bufrem
This call expanded to (smb_buflen(req->inbuf) - PTR_DIFF(smb_buf(req->inbuf) - smb_buf(req->inbuf))) which seems pretty pointless :-)
This commit is contained in:
parent
12d2bfdb86
commit
ff274e57ea
@ -1447,8 +1447,7 @@ void reply_sesssetup_and_X(struct smb_request *req)
|
||||
remove_from_common_flags2(FLAGS2_32_BIT_ERROR_CODES);
|
||||
|
||||
if ((passlen1 > MAX_PASS_LEN)
|
||||
|| (passlen1 > smb_bufrem(req->inbuf,
|
||||
smb_buf(req->inbuf)))) {
|
||||
|| (passlen1 > smb_buflen(req->inbuf))) {
|
||||
reply_nterror(req, nt_status_squash(
|
||||
NT_STATUS_INVALID_PARAMETER));
|
||||
END_PROFILE(SMBsesssetupX);
|
||||
|
Loading…
Reference in New Issue
Block a user