SOURCES: bind-getifaddrs.patch (NEW) - skip entries with ifa_addr ...

arekm arekm at pld-linux.org
Thu Mar 8 13:38:54 CET 2007


Author: arekm                        Date: Thu Mar  8 12:38:54 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- skip entries with ifa_addr == NULL

---- Files affected:
SOURCES:
   bind-getifaddrs.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/bind-getifaddrs.patch
diff -u /dev/null SOURCES/bind-getifaddrs.patch:1.1
--- /dev/null	Thu Mar  8 13:38:54 2007
+++ SOURCES/bind-getifaddrs.patch	Thu Mar  8 13:38:49 2007
@@ -0,0 +1,13 @@
+--- bind-9.4.0/lib/isc/unix/ifiter_getifaddrs.c.org	2007-03-08 13:28:25.234354162 +0100
++++ bind-9.4.0/lib/isc/unix/ifiter_getifaddrs.c	2007-03-08 13:29:02.205146577 +0100
+@@ -111,7 +111,9 @@
+ 
+ 	INSIST(ifa != NULL);
+ 	INSIST(ifa->ifa_name != NULL);
+-	INSIST(ifa->ifa_addr != NULL);
++
++	if (ifa->ifa_addr == NULL)
++		return (ISC_R_IGNORE);
+ 
+ 	family = ifa->ifa_addr->sa_family;
+ 	if (family != AF_INET && family != AF_INET6)
================================================================


More information about the pld-cvs-commit mailing list