diff options
author | Steven Barth <steven@midlink.org> | 2013-12-10 15:56:41 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-12-10 15:56:41 +0100 |
commit | 5df476f99b3254bfc26721452b17a5fc23e7142c (patch) | |
tree | 546400db61994a5a990fa32d56d168a124977110 /src/odhcpd.c | |
parent | 3d84d7c0b5fa08068b4055c793e1cccd6e0e9ea3 (diff) | |
parent | 93a6018520bf3521a6e853e5ffbff827d33f96b9 (diff) |
Merge branch 'master' of github.com:sbyx/odhcpd
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); |