summaryrefslogtreecommitdiff
path: root/sys/netinet6/mld6.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2006-12-12 12:17:58 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2006-12-12 12:17:58 +0000
commit1d54aa3ba94f4d9883b0746ce45123d5b5be773b (patch)
tree262eb78fb028423e6796d76401691a45b39b496a /sys/netinet6/mld6.c
parent558c08c358c16c8a2ddadc3ac03935fce0b2e895 (diff)
Notes
Diffstat (limited to 'sys/netinet6/mld6.c')
-rw-r--r--sys/netinet6/mld6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index bc8a7c39ca70..19371c542be7 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -296,10 +296,11 @@ mld6_input(m, off)
/* source address validation */
ip6 = mtod(m, struct ip6_hdr *); /* in case mpullup */
if (!IN6_IS_ADDR_LINKLOCAL(&ip6->ip6_src)) {
+ char ip6bufs[INET6_ADDRSTRLEN], ip6bufg[INET6_ADDRSTRLEN];
log(LOG_ERR,
"mld6_input: src %s is not link-local (grp=%s)\n",
- ip6_sprintf(&ip6->ip6_src),
- ip6_sprintf(&mldh->mld_addr));
+ ip6_sprintf(ip6bufs, &ip6->ip6_src),
+ ip6_sprintf(ip6bufg, &mldh->mld_addr));
/*
* spec (RFC2710) does not explicitly
* specify to discard the packet from a non link-local