summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-01-07 19:23:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-01-07 19:23:14 +0000
commit610f15cb33818442bd5addd2f6188dba127deee8 (patch)
treec9edfb51591aee4784c0e19c13ea74ad2e5c8df5 /usr.sbin
parentdbaa0f9087a19db09f0d45d8992e2a55d9085e14 (diff)
Asa Yeamans points out that we need to CMSG_SPACE[] for the 2nd message
as well. ok guenther millert
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/route6d/route6d.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index dcc47eb1171..eb6245233ee 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6d.c,v 1.59 2013/10/17 16:27:48 bluhm Exp $ */
+/* $OpenBSD: route6d.c,v 1.60 2014/01/07 19:23:13 deraadt Exp $ */
/* $KAME: route6d.c,v 1.111 2006/10/25 06:38:13 jinmei Exp $ */
/*
@@ -925,7 +925,8 @@ sendpacket(struct sockaddr_in6 *sin6, int len)
struct iovec iov[2];
union {
struct cmsghdr hdr;
- u_char buf[CMSG_SPACE(sizeof(struct in6_pktinfo))];
+ u_char buf[CMSG_SPACE(sizeof(struct in6_pktinfo)) +
+ CMSG_SPACE(sizeof(int))];
} cmsgbuf;
struct in6_pktinfo *pi;
int idx;