summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/negprot.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/negprot.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/negprot.c')
-rw-r--r--source4/libcli/smb2/negprot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/libcli/smb2/negprot.c b/source4/libcli/smb2/negprot.c
index 758b06fcae..0dc8c8ca14 100644
--- a/source4/libcli/smb2/negprot.c
+++ b/source4/libcli/smb2/negprot.c
@@ -77,8 +77,7 @@ NTSTATUS smb2_negprot_recv(struct smb2_request *req, TALLOC_CTX *mem_ctx,
io->out.unknown8 = SVAL(req->in.body, 0x38);
blobsize = SVAL(req->in.body, 0x3A);
io->out.unknown9 = IVAL(req->in.body, 0x3C);
- io->out.secblob = smb2_pull_blob(req, req->in.body+0x40, blobsize);
- talloc_steal(mem_ctx, io->out.secblob.data);
+ io->out.secblob = smb2_pull_blob(&req->in, mem_ctx, req->in.body+0x40, blobsize);
return smb2_request_destroy(req);
}