From 8b3c8983bcb4b86127d8b76b154c713c66915e9f Mon Sep 17 00:00:00 2001 From: glebius Date: Thu, 25 Apr 2013 17:38:04 +0000 Subject: Fix couple of mbuf leaks in incoming ARP processing. --- sys/netinet/if_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet') diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index eaa10aa..7031784 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -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); -- cgit v1.1