summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-04-01 11:19:31 +0200
committerSteven Barth <steven@midlink.org>2014-04-01 11:19:31 +0200
commitd12c7b8c39bc0f727bde5aa34595e9a581891dca (patch)
treece1cbba4f2e879720f30679a66f40f26288e62e8 /src/odhcpd.c
parent2b4200f2510874a3ee9c09f594d5ab6340ffb336 (diff)
Complete managed PD/CER-ID support
Diffstat (limited to 'src/odhcpd.c')
-rw-r--r--src/odhcpd.c2
1 files changed, 1 insertions, 1 deletions
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];