freebsd-ports/net/mDNSResponder/files/patch-mDNSPosix_mDNSUNP.c
Jean-Yves Lefort 04f5574229 Fix a bug causing the software to not see interfaces while coming up.
PR:		ports/80856
Submitted by:	Bruce Walker <bmw@borderware.com>
2005-05-10 19:27:21 +00:00

11 lines
445 B
C

--- mDNSPosix/mDNSUNP.c.orig Fri Apr 8 23:43:59 2005
+++ mDNSPosix/mDNSUNP.c Tue May 10 21:16:46 2005
@@ -331,7 +331,7 @@
ifr = (struct ifreq *) ptr;
len = GET_SA_LEN(ifr->ifr_addr);
- ptr += sizeof(struct ifreq); /* for next one in buffer */
+ ptr += sizeof(ifr->ifr_name) + len; /* for next one in buffer */
// fprintf(stderr, "intf %d name=%s AF=%d\n", index, ifr->ifr_name, ifr->ifr_addr.sa_family);