Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/apache2/mDNSResponder/dist/mDNSPosix Add the missin...
details: https://anonhg.NetBSD.org/src/rev/7c22139e0bf1
branches: trunk
changeset: 321958:7c22139e0bf1
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 31bf9e56a540 -r 7c22139e0bf1 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