summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-10-29 13:18:05 +0200
committerMichael Adam <obnox@samba.org>2011-10-30 18:41:22 +0100
commit530cd2aac6178570c182b6f33364c7d3c6316c00 (patch)
treef24885ff1f5bc2886c0687ee650f53e81f108ce2 /source4
parentd01b248d4f6260c9d67a82e6497f8f4c99666a4c (diff)
downloadsamba-530cd2aac6178570c182b6f33364c7d3c6316c00.tar.gz
samba-530cd2aac6178570c182b6f33364c7d3c6316c00.tar.bz2
samba-530cd2aac6178570c182b6f33364c7d3c6316c00.zip
s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE buffer smb2_create.out.durable_open
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/smb2/create.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/libcli/smb2/create.c b/source4/libcli/smb2/create.c
index 4e15064185..438651f427 100644
--- a/source4/libcli/smb2/create.c
+++ b/source4/libcli/smb2/create.c
@@ -274,6 +274,13 @@ NTSTATUS smb2_create_recv(struct smb2_request *req, TALLOC_CTX *mem_ctx, struct
io->out.lease_response.lease_flags = IVAL(data, 20);
io->out.lease_response.lease_duration = BVAL(data, 24);
}
+ if (strcmp(io->out.blobs.blobs[i].tag, SMB2_CREATE_TAG_DHNQ) == 0) {
+ if (io->out.blobs.blobs[i].data.length != 8) {
+ smb2_request_destroy(req);
+ return NT_STATUS_INVALID_NETWORK_RESPONSE;
+ }
+ io->out.durable_open = true;
+ }
}
data_blob_free(&blob);