summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-09-03 08:02:21 +0200
committerVolker Lendecke <vl@samba.org>2009-09-05 12:52:48 +0200
commit4b49a8debce4c8f8b807b09f1800539028075c6f (patch)
treefdccc180144cb60d44a9ec715c6c797977f98782 /source3/libsmb
parenta32f4dd3cfd43022ab3224366e026664b238429e (diff)
downloadsamba-4b49a8debce4c8f8b807b09f1800539028075c6f.tar.gz
samba-4b49a8debce4c8f8b807b09f1800539028075c6f.tar.bz2
samba-4b49a8debce4c8f8b807b09f1800539028075c6f.zip
s3:libsmb: Convert (state->received) to (state->received != 0)
This confused me for a second, this should not happen a second time :-)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clireadwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c
index 0d1f9e515e..27f9e4fd98 100644
--- 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;