From ff838ccb6c2d266462e2a1c08daeddddb2529ab5 Mon Sep 17 00:00:00 2001 From: Apple Date: Wed, 13 Aug 2014 17:58:10 +0000 Subject: [PATCH] mDNSResponder-522.92.1.tar.gz --- Makefile | 2 +- mDNSMacOSX/BonjourEvents.c | 10 ++++++++++ mDNSShared/dns_sd.h | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4ebf3a5..35b1b5f 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ include $(MAKEFILEPATH)/pb_makefiles/platform.make -MVERS = "mDNSResponder-522.90.2" +MVERS = "mDNSResponder-522.92.1" DDNSWRITECONFIG = "$(DSTROOT)/Library/Application Support/Bonjour/ddnswriteconfig" VER = diff --git a/mDNSMacOSX/BonjourEvents.c b/mDNSMacOSX/BonjourEvents.c index b930818..811fa51 100644 --- a/mDNSMacOSX/BonjourEvents.c +++ b/mDNSMacOSX/BonjourEvents.c @@ -747,6 +747,16 @@ void ServiceBrowserCallback (DNSServiceRef sdRef, } CFStringRef cfServiceName = CFStringCreateWithCString(NULL, serviceName, kCFStringEncodingUTF8); + if (cfServiceName == NULL) + { + static int msg_count = 0; + if (msg_count < 1000) + { + asl_log(NULL, NULL, ASL_LEVEL_INFO, "%s:%s Can not create CFString for serviceName %s", sPluginIdentifier, __FUNCTION__, serviceName); + msg_count++; + } + return; + } if (flags & kDNSServiceFlagsAdd) { diff --git a/mDNSShared/dns_sd.h b/mDNSShared/dns_sd.h index 6bbb98a..88ca769 100644 --- a/mDNSShared/dns_sd.h +++ b/mDNSShared/dns_sd.h @@ -77,7 +77,7 @@ */ #ifndef _DNS_SD_H -#define _DNS_SD_H 5229002 +#define _DNS_SD_H 5229201 #ifdef __cplusplus extern "C" { -- 2.45.2