<rdar://problem/7386007> Crash when getting debug state information
authorrlpm@apple.com <rlpm@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Wed, 11 Nov 2009 20:23:46 +0000 (20:23 +0000)
committerrlpm@apple.com <rlpm@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Wed, 11 Nov 2009 20:23:46 +0000 (20:23 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6779 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSMacOSX/daemon.c

index b39d08b..1aacb4c 100644 (file)
@@ -1781,7 +1781,7 @@ mDNSlocal void INFOCallback(void)
                {
                for (s = mDNSStorage.DNSServers; s; s = s->next)
                        {
-                       NetworkInterfaceInfoOSX *ifx = (NetworkInterfaceInfoOSX *)s->interface;
+                       NetworkInterfaceInfoOSX *ifx = IfindexToInterfaceInfoOSX(&mDNSStorage, s->interface);
                        LogMsgNoIdent("DNS Server %##s %s%s%#a:%d %d %s",
                                s->domain.c, ifx ? ifx->ifinfo.ifname : "", ifx ? " " : "", &s->addr, mDNSVal16(s->port),
                                s->penaltyTime ? s->penaltyTime - mDNS_TimeNow(&mDNSStorage) : 0,