diff options
author | glebius <glebius@FreeBSD.org> | 2012-05-30 07:11:27 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-05-30 07:11:27 +0000 |
commit | abc1dafefabb78b40381e8df4b7dc98089ce60e0 (patch) | |
tree | f3d9feb72f8f593a563f7f1f9d34a19edebf620e /sys/netinet/ip_carp.c | |
parent | 61c789bc4b1f64988da0266129a82be04ef20c65 (diff) | |
download | FreeBSD-src-abc1dafefabb78b40381e8df4b7dc98089ce60e0.zip FreeBSD-src-abc1dafefabb78b40381e8df4b7dc98089ce60e0.tar.gz |
After r228571 carp_output() expects carp_softc * pointer in the mtag.
Noticed by: thompsa
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 2b92aaa..367fa40 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1061,13 +1061,13 @@ carp_macmatch6(struct ifnet *ifp, struct mbuf *m, const struct in6_addr *taddr) IF_ADDR_RUNLOCK(ifp); mtag = m_tag_get(PACKET_TAG_CARP, - sizeof(struct ifnet *), M_NOWAIT); + sizeof(struct carp_softc *), M_NOWAIT); if (mtag == NULL) /* Better a bit than nothing. */ return (LLADDR(&sc->sc_addr)); - bcopy(&ifp, (caddr_t)(mtag + 1), - sizeof(struct ifnet *)); + bcopy(&sc, (caddr_t)(mtag + 1), + sizeof(struct carp_softc *)); m_tag_prepend(m, mtag); return (LLADDR(&sc->sc_addr)); |