X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fodhcpd.c;h=bf9f16d8932845b454569572be627df78ccac6d7;hp=25a6047b5d7cdb231829795d9d814575f5158ea3;hb=d3cc614ef3120d504f2029a8e9494dccafdc14dd;hpb=e9a21fdb43c9f94762a724db1a043b376f745ae3 diff --git a/src/odhcpd.c b/src/odhcpd.c index 25a6047..bf9f16d 100644 --- a/src/odhcpd.c +++ b/src/odhcpd.c @@ -217,7 +217,7 @@ ssize_t odhcpd_get_interface_addresses(int ifindex, struct ifaddrmsg *ifa = NLMSG_DATA(nhm); if (ifa->ifa_scope != RT_SCOPE_UNIVERSE || - ifa->ifa_index != (unsigned)ifindex) + (ifindex && ifa->ifa_index != (unsigned)ifindex)) continue; struct rtattr *rta = (struct rtattr*)&ifa[1];