Add the missing lock.
This commit is contained in:
parent
d0c4b2c3b3
commit
0c6b6224b4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user