summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-05 12:29:23 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-07 09:18:10 +0100
commit20fe7658a779c24c9a4e0b66da844fd117a97319 (patch)
tree5995be37a02b243746f4e617c49daa1543458b91 /source3
parent384eaba38e4da2a2e72e1ec5bfea7d7776d16a11 (diff)
downloadsamba-20fe7658a779c24c9a4e0b66da844fd117a97319.tar.gz
samba-20fe7658a779c24c9a4e0b66da844fd117a97319.tar.bz2
samba-20fe7658a779c24c9a4e0b66da844fd117a97319.zip
s3:libsmb: get cmd of the chained request before changing wct_ofs
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/async_smb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 79194f5eba..8fecd2dd76 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -878,6 +878,7 @@ NTSTATUS cli_smb_recv(struct tevent_req *req,
return NT_STATUS_REQUEST_ABORTED;
}
+ cmd = CVAL(state->inbuf, wct_ofs + 1);
wct_ofs = SVAL(state->inbuf, wct_ofs + 3);
/*
@@ -889,8 +890,6 @@ NTSTATUS cli_smb_recv(struct tevent_req *req,
if (wct_ofs+2 > talloc_get_size(state->inbuf)) {
return NT_STATUS_INVALID_NETWORK_RESPONSE;
}
-
- cmd = CVAL(state->inbuf, wct_ofs + 1);
}
state->cli->raw_status = cli_pull_raw_error(state->inbuf);