s4:libcli/raw: fix SMBtconX response parsing
authorStefan Metzmacher <metze@samba.org>
Tue, 24 Jul 2012 06:54:02 +0000 (08:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 24 Jul 2012 16:44:03 +0000 (18:44 +0200)
metze

source4/libcli/raw/clitree.c

index cee1cd0bf04847d459db547547d77ceeec9b9321..c232b510555d1f9185d3a17504761c1fa0105855 100644 (file)
@@ -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 */