Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
src: Add the missing lock.
details: https://anonhg.NetBSD.org/src/rev/23b96a4ec55d
branches: trunk
changeset: 318074:23b96a4ec55d
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 11 18:34:18 2018 +0000
description:
Add the missing lock.
diffstat:
external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r a05b39d6ac6c -r 23b96a4ec55d external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c
--- a/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c Wed Apr 11 18:33:48 2018 +0000
+++ b/external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c Wed Apr 11 18:34:18 2018 +0000
@@ -48,6 +48,7 @@
#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 @@
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);
Home |
Main Index |
Thread Index |
Old Index