summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-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",