fixed offset for maximal access response
authorAndrew Tridgell <tridge@samba.org>
Thu, 29 May 2008 08:23:00 +0000 (18:23 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 29 May 2008 08:23:00 +0000 (18:23 +1000)
source/libcli/smb2/create.c

index 342a5193760d007766a9de2d4e673963c68059f4..8a40e56a00e613a94c371f7ba852fefc38d960e7 100644 (file)
@@ -393,7 +393,7 @@ NTSTATUS smb2_create_recv(struct smb2_request *req, TALLOC_CTX *mem_ctx, struct
                                smb2_request_destroy(req);
                                return NT_STATUS_INVALID_NETWORK_RESPONSE;
                        }
-                       io->out.maximal_access = IVAL(io->out.blobs.blobs[i].data.data, 0);
+                       io->out.maximal_access = IVAL(io->out.blobs.blobs[i].data.data, 4);
                }
                if (strcmp(io->out.blobs.blobs[i].tag, SMB2_CREATE_TAG_QFID) == 0) {
                        if (io->out.blobs.blobs[i].data.length != 32) {