summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-03-26 13:48:51 +0200
committerStefan Metzmacher <metze@samba.org>2012-04-02 21:26:08 +0200
commite01d6f4af02160199a014b9ea3e05a56c47f9f1f (patch)
tree7b70ad98e7580aac5e7eef4b9ca5cec049a376e5
parentdca4e6eb6e199e35b50a36ea3861a5d3429f6804 (diff)
downloadsamba-e01d6f4af02160199a014b9ea3e05a56c47f9f1f.tar.gz
samba-e01d6f4af02160199a014b9ea3e05a56c47f9f1f.tar.bz2
samba-e01d6f4af02160199a014b9ea3e05a56c47f9f1f.zip
s4:smb_server/smb2: fix memory leak in smb2srv_chain_reply()
metze
-rw-r--r--source4/smb_server/smb2/receive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c
index b8aba71aaa..41408c4784 100644
--- a/source4/smb_server/smb2/receive.c
+++ b/source4/smb_server/smb2/receive.c
@@ -164,6 +164,8 @@ static void smb2srv_chain_reply(struct smb2srv_request *p_req)
uint32_t flags;
uint32_t last_hdr_offset;
+ talloc_steal(req, p_req);
+
last_hdr_offset = p_req->in.hdr - p_req->in.buffer;
chain_offset = p_req->chain_offset;