diff options
Diffstat (limited to 'source4/libcli/smb2/negprot.c')
-rw-r--r-- | source4/libcli/smb2/negprot.c | 3 |
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); } |