summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMarc A. Dahlhaus <mad@wol.de>2011-04-01 13:26:31 -0700
committerJeremy Allison <jra@samba.org>2011-04-01 23:15:33 +0200
commitac216c130e5d1f1c86d7e481838748208bb68f73 (patch)
tree43339e4e312e5e3df0965702fdb392c7966dd1aa /source3/smbd
parent1272758f8f989647802ea90722661ab133efa83f (diff)
downloadsamba-ac216c130e5d1f1c86d7e481838748208bb68f73.tar.gz
samba-ac216c130e5d1f1c86d7e481838748208bb68f73.tar.bz2
samba-ac216c130e5d1f1c86d7e481838748208bb68f73.zip
Fix bug #8047 - mdns registration doesn't work if "interfaces" is used in smb.conf
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 1 23:15:34 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index e9332c1f14..1948077c1f 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -681,6 +681,13 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
continue;
}
+ /* Keep the first port for mDNS service
+ * registration.
+ */
+ if (dns_port == 0) {
+ dns_port = port;
+ }
+
if (!smbd_open_one_socket(parent, ifss, port)) {
return false;
}