s3: Fix a bad memleak in the async echo responder
authorVolker Lendecke <vl@samba.org>
Thu, 27 May 2010 16:12:30 +0000 (18:12 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 27 May 2010 16:18:37 +0000 (18:18 +0200)
source3/smbd/process.c

index 36640cb3b59f7a5f1ebf3db6411cf0abdba82434..e13d6fda1fff04dcbc8bc2587062513314365c82 100644 (file)
@@ -2366,7 +2366,7 @@ static void smbd_echo_reader(struct tevent_context *ev,
 
        DEBUG(10,("echo_handler[%d]: reading pdu\n", (int)sys_getpid()));
 
-       status = receive_smb_talloc(state, smbd_server_fd(),
+       status = receive_smb_talloc(state->pending, smbd_server_fd(),
                                    (char **)(void *)&state->pending[num_pending].iov_base,
                                    0 /* timeout */,
                                    &unread,