From 3d5c534f0cc7c6e3eead7462eef4a178c7035857 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 8 Jan 2013 15:34:19 +0100 Subject: smbd: Fix bug 9549 -- Memleak in the async echo handler Reviewed by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Jan 8 23:30:41 CET 2013 on sn-devel-104 --- source3/smbd/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index f89ca02aea..a02aeda852 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -3022,7 +3022,7 @@ static void smbd_echo_got_packet(struct tevent_req *req) } iov = &state->pending[num_pending]; - iov->iov_base = buf; + iov->iov_base = talloc_move(state->pending, &buf); iov->iov_len = buflen; DEBUG(10,("echo_handler[%d]: forward to main\n", -- cgit