summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-24 08:54:02 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-24 18:44:03 +0200
commita6e5b98827c9a85a8e062ed9dba10e1205801135 (patch)
tree1579fbe634179181b3ece858b63a2c15bc06f1b6
parentd00d20626f54e87c5d51624eae6be334b88eb49a (diff)
downloadsamba-a6e5b98827c9a85a8e062ed9dba10e1205801135.tar.gz
samba-a6e5b98827c9a85a8e062ed9dba10e1205801135.tar.bz2
samba-a6e5b98827c9a85a8e062ed9dba10e1205801135.zip
s4:libcli/raw: fix SMBtconX response parsing
metze
-rw-r--r--source4/libcli/raw/clitree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/raw/clitree.c b/source4/libcli/raw/clitree.c
index cee1cd0bf0..c232b51055 100644
--- a/source4/libcli/raw/clitree.c
+++ b/source4/libcli/raw/clitree.c
@@ -115,8 +115,8 @@ NTSTATUS smb_raw_tcon_recv(struct smbcli_request *req, TALLOC_CTX *mem_ctx,
case RAW_TCON_TCONX:
ZERO_STRUCT(parms->tconx.out);
parms->tconx.out.tid = SVAL(req->in.hdr, HDR_TID);
- if (req->in.wct >= 4) {
- parms->tconx.out.options = SVAL(req->in.vwv, VWV(3));
+ if (req->in.wct >= 3) {
+ parms->tconx.out.options = SVAL(req->in.vwv, VWV(2));
}
/* output is actual service name */