summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-01-08 15:34:19 +0100
committerJeremy Allison <jra@samba.org>2013-01-08 23:30:41 +0100
commit3d5c534f0cc7c6e3eead7462eef4a178c7035857 (patch)
tree778770906ea4a8c7d090b4a0d9a1b459bfac015f /source3/smbd/process.c
parenteae01b0d3daf5bae9edada73669e3af879b000bb (diff)
downloadsamba-3d5c534f0cc7c6e3eead7462eef4a178c7035857.tar.gz
samba-3d5c534f0cc7c6e3eead7462eef4a178c7035857.tar.bz2
samba-3d5c534f0cc7c6e3eead7462eef4a178c7035857.zip
smbd: Fix bug 9549 -- Memleak in the async echo handler
Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jan 8 23:30:41 CET 2013 on sn-devel-104
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
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",