summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/nmbd/nmbd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 63a5681e9d..8c41ebbde6 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -459,7 +459,7 @@ static void msg_nmbd_send_packet(struct messaging_context *msg,
The main select loop.
**************************************************************************** */
-static void process(void)
+static void process(struct messaging_context *msg)
{
bool run_election;
@@ -480,8 +480,7 @@ static void process(void)
* (nmbd_packets.c)
*/
- if (listen_for_packets(nmbd_messaging_context(),
- run_election)) {
+ if (listen_for_packets(msg, run_election)) {
TALLOC_FREE(frame);
return;
}
@@ -1013,7 +1012,7 @@ static bool open_sockets(bool isdaemon, int port)
}
TALLOC_FREE(frame);
- process();
+ process(nmbd_messaging_context());
kill_async_dns_child();
return(0);