Get the inbuf on talloc_tos()
authorVolker Lendecke <vl@samba.org>
Sat, 12 Jan 2008 20:09:43 +0000 (21:09 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 12 Jan 2008 20:09:43 +0000 (21:09 +0100)
source/smbd/process.c

index 2d3cf7fbd8dd713334d3a0d877654307c2843c0f..a5bdb9665032a6db29d1eaede6ce9cc27df16a82 100644 (file)
@@ -2085,7 +2085,7 @@ void smbd_process(void)
 
                run_events(smbd_event_context(), 0, NULL, NULL);
 
-               while (!receive_message_or_smb(NULL, &inbuf, &inbuf_len,
+               while (!receive_message_or_smb(talloc_tos(), &inbuf, &inbuf_len,
                                                select_timeout,
                                                &unread_bytes,
                                                &encrypted)) {