From b87c794f99d7909e907b1d115c317bebd55984ed Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Sep 2009 17:22:39 -0700 Subject: [PATCH] Second part of fix for bug 6696 - smbd 3.3.7 crashes (signal 11) in dns_register_smbd_reply. Restore the code from 3.2 that actually initializes the struct dns_reg_state handle. Jeremy. --- source/smbd/server.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/smbd/server.c b/source/smbd/server.c index e0f86a6b7ca..51294847307 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -652,6 +652,12 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ FD_ZERO(&w_fds); GetTimeOfDay(&now); + /* Kick off our mDNS registration. */ + if (dns_port != 0) { + dns_register_smbd(&dns_reg, dns_port, &maxfd, + &r_fds, &idle_timeout); + } + event_add_to_select_args(smbd_event_context(), &now, &r_fds, &w_fds, &idle_timeout, &maxfd); -- 2.11.4.GIT