Re: kern/165903: mbuf leak
--+OvhQd+MVTzxy63P
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
Chris,
can you please test attached patch?
Jeremy, thanks for cc :)
--
Totus tuus, Glebius.
--+OvhQd+MVTzxy63P
Content-Type: text/x-diff; charset=koi8-r
Content-Disposition: attachment; filename="if_ether.c.diff"
Index: if_ether.c
===================================================================
--- if_ether.c (revision 249327)
+++ if_ether.c (working copy)
@@ -558,13 +558,13 @@ in_arpinput(struct mbuf *m)
if (ah->ar_pln != sizeof(struct in_addr)) {
log(LOG_NOTICE, "in_arp: requested protocol length != %zu\n",
sizeof(struct in_addr));
- return;
+ goto drop;
}
if (allow_multicast == 0 && ETHER_IS_MULTICAST(ar_sha(ah))) {
log(LOG_NOTICE, "arp: %*D is multicast\n",
ifp->if_addrlen, (u_char *)ar_sha(ah), ":");
- return;
+ goto drop;
}
op = ntohs(ah->ar_op);
--+OvhQd+MVTzxy63P
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
--+OvhQd+MVTzxy63P--
討論串 (同標題文章)
完整討論串 (本文為第 8 之 10 篇):