]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
If there is no announced_cb, free the arp state.
authorRoy Marples <roy@marples.name>
Mon, 10 Oct 2016 08:47:13 +0000 (08:47 +0000)
committerRoy Marples <roy@marples.name>
Mon, 10 Oct 2016 08:47:13 +0000 (08:47 +0000)
arp.c

diff --git a/arp.c b/arp.c
index b6c08b6ad378f7f7264814a696ff49f70d359ec5..88fc8276af01438288f28bcf6553b86e3ce4b6f0 100644 (file)
--- a/arp.c
+++ b/arp.c
@@ -235,7 +235,8 @@ arp_announced(void *arg)
                return;
        }
 
-       /* Keep ARP open so we can detect duplicates. */
+       /* As there is no announced callback, free the ARP state. */
+       arp_free(astate);
 }
 
 static void