diff options
Diffstat (limited to 'package/ndisc/patches/patch-rdnssd_icmp_c')
-rw-r--r-- | package/ndisc/patches/patch-rdnssd_icmp_c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/ndisc/patches/patch-rdnssd_icmp_c b/package/ndisc/patches/patch-rdnssd_icmp_c new file mode 100644 index 000000000..78cbd8e43 --- /dev/null +++ b/package/ndisc/patches/patch-rdnssd_icmp_c @@ -0,0 +1,20 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- ndisc6-0.9.8.orig/rdnssd/icmp.c 2008-05-01 14:52:28.000000000 +0200 ++++ ndisc6-0.9.8/rdnssd/icmp.c 2009-05-10 19:43:19.000000000 +0200 +@@ -47,6 +47,7 @@ + + static int icmp_recv (int fd) + { ++ struct cmsghdr *cmsg; + struct nd_router_advert icmp6; + uint8_t buf[65536 - sizeof (icmp6)], cbuf[CMSG_SPACE (sizeof (int))]; + struct iovec iov[2] = +@@ -74,7 +75,7 @@ static int icmp_recv (int fd) + || (icmp6.nd_ra_code != 0)) /* unknown ICMPv6 code */ + return -1; + +- for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); ++ for (cmsg = CMSG_FIRSTHDR (&msg); + cmsg != NULL; + cmsg = CMSG_NXTHDR (&msg, cmsg)) + { |