summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-16 11:14:16 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-24 19:02:30 +0100
commit94cb738dd4deab7dc97e0da77a406264297713b9 (patch)
treefc17b0804c4e01706756b3a99762fa2085a01435
parent4529395d3c955475de50a79eea767716eba57be7 (diff)
downloadsamba-94cb738dd4deab7dc97e0da77a406264297713b9.tar.gz
samba-94cb738dd4deab7dc97e0da77a406264297713b9.tar.bz2
samba-94cb738dd4deab7dc97e0da77a406264297713b9.zip
smbXcli: pass hdr to smb1cli_pull_raw_error()
metze
-rw-r--r--libcli/smb/smbXcli_base.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index a48ef69aa7..ce6e3242e9 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -367,9 +367,8 @@ bool smb1cli_conn_encryption_on(struct smbXcli_conn *conn)
}
-static NTSTATUS smb1cli_pull_raw_error(const uint8_t *buf)
+static NTSTATUS smb1cli_pull_raw_error(const uint8_t *hdr)
{
- const uint8_t *hdr = buf + NBT_HDR_SIZE;
uint32_t flags2 = SVAL(hdr, HDR_FLG2);
NTSTATUS status = NT_STATUS(IVAL(hdr, HDR_RCLS));
@@ -1394,7 +1393,7 @@ NTSTATUS smb1cli_req_recv(struct tevent_req *req,
}
}
- status = smb1cli_pull_raw_error(state->inbuf);
+ status = smb1cli_pull_raw_error(state->inbuf+NBT_HDR_SIZE);
if (!smb1cli_have_andx_command(state->inbuf, wct_ofs, cmd)) {