summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/getinfo.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-14 12:31:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:18 -0500
commitde5d71aebe4e415fcebbfacb852b190498cbf7bf (patch)
tree2aa0cf59e9275724f5612fff23cff7655883f37a /source4/libcli/smb2/getinfo.c
parent61317df8aab2fe2fd47baba8a137566df7b23395 (diff)
downloadsamba-de5d71aebe4e415fcebbfacb852b190498cbf7bf.tar.gz
samba-de5d71aebe4e415fcebbfacb852b190498cbf7bf.tar.bz2
samba-de5d71aebe4e415fcebbfacb852b190498cbf7bf.zip
r11722: make the smb2_push/pull functions take a smb2_request_buffer
and the pull ones also a TALLOC_CTX, then we can reuse this functions in the server later metze (This used to be commit 9b616516cae269f0870e9b9a9cecd8ee3f0a9095)
Diffstat (limited to 'source4/libcli/smb2/getinfo.c')
-rw-r--r--source4/libcli/smb2/getinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/libcli/smb2/getinfo.c b/source4/libcli/smb2/getinfo.c
index ffc2a92daf..9ad2b77310 100644
--- a/source4/libcli/smb2/getinfo.c
+++ b/source4/libcli/smb2/getinfo.c
@@ -69,11 +69,10 @@ NTSTATUS smb2_getinfo_recv(struct smb2_request *req, TALLOC_CTX *mem_ctx,
SMB2_CHECK_BUFFER_CODE(req, 0x09);
- status = smb2_pull_ofs_blob(req, req->in.body+0x02, &io->out.blob);
+ status = smb2_pull_ofs_blob(&req->in, mem_ctx, req->in.body+0x02, &io->out.blob);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- talloc_steal(mem_ctx, io->out.blob.data);
return smb2_request_destroy(req);
}