diff options
| author | christos <christos@NetBSD.org> | 2018-04-11 18:34:18 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2018-04-11 18:34:18 +0000 |
| commit | ef1d2b27c5a2a8dec5e3e2f7f1fe4f84f91d0e61 (patch) | |
| tree | 372a18e1a14425a392c3808e286b244cb933cf0c /external/apache2 | |
| parent | 6a18dfde9c6cf84db574a282f3cf5e5759211fa4 (diff) | |
Add the missing lock.
Diffstat (limited to 'external/apache2')
| -rw-r--r-- | external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c b/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c index 05c4a7ce8a2..1fcd86fe254 100644 --- a/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c +++ b/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c @@ -48,6 +48,7 @@ extern int daemon(int, int); #include "mDNSUNP.h" // For daemon() #include "uds_daemon.h" #include "PlatformCommon.h" +#include "DNSCommon.h" #define CONFIG_FILE "/etc/mdnsd.conf" static domainname DynDNSZone; // Default wide-area zone for service registration @@ -89,8 +90,10 @@ static void Reconfigure(mDNS *m) mDNSAddr DynDNSIP; const mDNSAddr dummy = { mDNSAddrType_IPv4, { { { 1, 1, 1, 1 } } } };; mDNS_SetPrimaryInterfaceInfo(m, NULL, NULL, NULL); + mDNS_Lock(m); if (ParseDNSServers(m, uDNS_SERVERS_FILE) < 0) LogMsg("Unable to parse DNS server list. Unicast DNS-SD unavailable"); + mDNS_Unlock(m); ReadDDNSSettingsFromConfFile(m, CONFIG_FILE, &DynDNSHostname, &DynDNSZone, NULL); mDNSPlatformSourceAddrForDest(&DynDNSIP, &dummy); if (DynDNSHostname.c[0]) mDNS_AddDynDNSHostName(m, &DynDNSHostname, NULL, NULL); |
