mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3:libsmb: Convert (state->received) to (state->received != 0)
This confused me for a second, this should not happen a second time :-)
This commit is contained in:
parent
a32f4dd3cf
commit
4b49a8debc
@ -200,7 +200,7 @@ static void cli_read_andx_done(struct tevent_req *subreq)
|
||||
state->buf = (uint8_t *)smb_base(inbuf) + SVAL(vwv+6, 0);
|
||||
|
||||
if (trans_oob(smb_len(inbuf), SVAL(vwv+6, 0), state->received)
|
||||
|| (state->received && (state->buf < bytes))) {
|
||||
|| ((state->received != 0) && (state->buf < bytes))) {
|
||||
DEBUG(5, ("server returned invalid read&x data offset\n"));
|
||||
tevent_req_nterror(req, NT_STATUS_INVALID_NETWORK_RESPONSE);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user