]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
arp: Fix a crash when dhcpcd forks or an interface removed
authorRoy Marples <roy@marples.name>
Tue, 16 Jul 2019 09:53:35 +0000 (10:53 +0100)
committerRoy Marples <roy@marples.name>
Tue, 16 Jul 2019 09:53:35 +0000 (10:53 +0100)
commit34a19cfb88fc1c252748184483c27c409e8ddd33
tree3aba13a307e8d71693f4affc257a938da4cac655
parent57abb730681c1f357d30ea0db618a81147be7398
arp: Fix a crash when dhcpcd forks or an interface removed

Because we try and free the ARP state when dhcpcd forks or an
interface is removed, the loop to work out the next state to free
could return invalid memory.
So test we have an ARP state each time we iterate and free.
src/arp.c