diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-12 07:48:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:15 -0500 |
commit | 67a85b3f1bca7e0590ae97d07a6ef32c418e64d1 (patch) | |
tree | cfa60883edcaf23ea6ecd0742247100322d45e40 /source4/libcli/smb2/close.c | |
parent | a1562e23800caef20730db9d1e5006d3a9ea4298 (diff) | |
download | samba-67a85b3f1bca7e0590ae97d07a6ef32c418e64d1.tar.gz samba-67a85b3f1bca7e0590ae97d07a6ef32c418e64d1.tar.bz2 samba-67a85b3f1bca7e0590ae97d07a6ef32c418e64d1.zip |
r11697: - added a generic SMB2 getinfo call
- added a SMB2-SCANGETINFO test for scanning for available info levels
- added names for the info levels I recognise to smb2.h
(This used to be commit fe5986067e2aaca039d70393ccc8761434f18fe6)
Diffstat (limited to 'source4/libcli/smb2/close.c')
-rw-r--r-- | source4/libcli/smb2/close.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/smb2/close.c b/source4/libcli/smb2/close.c index b60c1b3071..2802e2f27e 100644 --- a/source4/libcli/smb2/close.c +++ b/source4/libcli/smb2/close.c @@ -1,7 +1,7 @@ /* Unix SMB/CIFS implementation. - SMB2 client tree handling + SMB2 client close handling Copyright (C) Andrew Tridgell 2005 @@ -61,7 +61,8 @@ NTSTATUS smb2_close_recv(struct smb2_request *req, struct smb2_close *io) return NT_STATUS_BUFFER_TOO_SMALL; } - io->out.buffer_code = SVAL(req->in.body, 0x00); + SMB2_CHECK_BUFFER_CODE(req, 0x3C); + io->out.flags = SVAL(req->in.body, 0x02); io->out._pad = IVAL(req->in.body, 0x04); io->out.create_time = smbcli_pull_nttime(req->in.body, 0x08); |