svn commit: r249975 - stable/9/sys/netinet
Gleb Smirnoff
glebius at FreeBSD.org
Sat Apr 27 07:00:32 UTC 2013
Author: glebius
Date: Sat Apr 27 07:00:31 2013
New Revision: 249975
URL: http://svnweb.freebsd.org/changeset/base/249975
Log:
Merge r249903 from head:
Fix couple of mbuf leaks in incoming ARP processing.
Modified:
stable/9/sys/netinet/if_ether.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netinet/if_ether.c
==============================================================================
--- stable/9/sys/netinet/if_ether.c Sat Apr 27 06:57:39 2013 (r249974)
+++ stable/9/sys/netinet/if_ether.c Sat Apr 27 07:00:31 2013 (r249975)
@@ -543,13 +543,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);
More information about the svn-src-stable-9
mailing list