diff options
author | sbyx <steven@midlink.org> | 2013-12-10 06:52:57 -0800 |
---|---|---|
committer | sbyx <steven@midlink.org> | 2013-12-10 06:52:57 -0800 |
commit | 93a6018520bf3521a6e853e5ffbff827d33f96b9 (patch) | |
tree | e7841f18874a861d492d863790b79d71f6f7ac13 /src/odhcpd.c | |
parent | dd3a301be17b33079306ae54b4a3fc30fcafba57 (diff) | |
parent | 3f417e55d5208df5b91aa9b101657bbc7a461614 (diff) |
Merge pull request #4 from dedeckeh/master
Bugfixes
Diffstat (limited to 'src/odhcpd.c')
-rw-r--r-- | src/odhcpd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/odhcpd.c b/src/odhcpd.c index d6ca298..cb84513 100644 --- a/src/odhcpd.c +++ b/src/odhcpd.c @@ -320,8 +320,7 @@ static void odhcpd_receive_packets(struct uloop_fd *u, _unused unsigned int even int *hlim = NULL; struct in6_pktinfo *pktinfo; struct in_pktinfo *pkt4info; - for (struct cmsghdr *ch = CMSG_FIRSTHDR(&msg); ch != NULL && - destiface == 0; ch = CMSG_NXTHDR(&msg, ch)) { + for (struct cmsghdr *ch = CMSG_FIRSTHDR(&msg); ch != NULL; ch = CMSG_NXTHDR(&msg, ch)) { if (ch->cmsg_level == IPPROTO_IPV6 && ch->cmsg_type == IPV6_PKTINFO) { pktinfo = (struct in6_pktinfo*)CMSG_DATA(ch); |