HomeFreeBSD

net: Fix memory leaks upon arp_fillheader() failures

Description

net: Fix memory leaks upon arp_fillheader() failures

Free memory before return from arprequest_internal(). In in_arpinput(),
if arp_fillheader() fails, it should use goto drop.

Reviewed by: melifaro, imp, markj
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/534

Details

Provenance
orange30 <44566632+orange30@users.noreply.github.com>Authored on Sep 1 2021, 3:37 PM
markjCommitted on Sep 10 2021, 1:45 PM
Parents
R10:6598cababf64: pf tests: synproxy to localhost test
Branches
Unknown
Tags
Unknown