git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a32f4dd
)
s3:libsmb: Convert (state->received) to (state->received != 0)
author
Volker Lendecke
<vl@samba.org>
Thu, 3 Sep 2009 06:02:21 +0000
(08:02 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 5 Sep 2009 10:52:48 +0000
(12:52 +0200)
This confused me for a second, this should not happen a second time :-)
source3/libsmb/clireadwrite.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clireadwrite.c
b/source3/libsmb/clireadwrite.c
index 0d1f9e515ef778f5dd9670ffc3a5ee5f3b8ddfa5..27f9e4fd98b27df1503a4c0014171ddeb6a99aba 100644
(file)
--- a/
source3/libsmb/clireadwrite.c
+++ b/
source3/libsmb/clireadwrite.c
@@
-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;