summaryrefslogtreecommitdiff
path: root/package/ndisc/patches/patch-src_ndisc_c.orig
diff options
context:
space:
mode:
Diffstat (limited to 'package/ndisc/patches/patch-src_ndisc_c.orig')
-rw-r--r--package/ndisc/patches/patch-src_ndisc_c.orig20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/ndisc/patches/patch-src_ndisc_c.orig b/package/ndisc/patches/patch-src_ndisc_c.orig
new file mode 100644
index 000000000..8bc600948
--- /dev/null
+++ b/package/ndisc/patches/patch-src_ndisc_c.orig
@@ -0,0 +1,20 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- ndisc6-0.9.8.orig/src/ndisc.c 2008-05-01 14:52:28.000000000 +0200
++++ ndisc6-0.9.8/src/ndisc.c 2009-05-10 19:16:18.000000000 +0200
+@@ -521,6 +521,7 @@ static ssize_t
+ recvfromLL (int fd, void *buf, size_t len, int flags,
+ struct sockaddr_in6 *addr)
+ {
++ struct cmsghdr *cmsg;
+ char cbuf[CMSG_SPACE (sizeof (int))];
+ struct iovec iov =
+ {
+@@ -542,7 +543,7 @@ recvfromLL (int fd, void *buf, size_t le
+ return val;
+
+ /* ensures the hop limit is 255 */
+- for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&hdr);
++ for (cmsg = CMSG_FIRSTHDR (&hdr);
+ cmsg != NULL;
+ cmsg = CMSG_NXTHDR (&hdr, cmsg))
+ {