]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
If an address is whipped out after adding it by something else,
authorRoy Marples <roy@marples.name>
Sun, 11 Dec 2011 21:14:49 +0000 (21:14 +0000)
committerRoy Marples <roy@marples.name>
Sun, 11 Dec 2011 21:14:49 +0000 (21:14 +0000)
don't crash.

arp.c

diff --git a/arp.c b/arp.c
index 907ac1131e2c9160322f52b94e5d92c217035eec..1905508edf4257e9c41e8a0b76f2060bf459475b 100644 (file)
--- a/arp.c
+++ b/arp.c
@@ -204,6 +204,8 @@ send_arp_announce(void *arg)
        struct if_state *state = iface->state;
        struct timeval tv;
 
+       if (state->new == NULL)
+               return;
        if (iface->arp_fd == -1) {
                open_socket(iface, ETHERTYPE_ARP);
                add_event(iface->arp_fd, handle_arp_packet, iface);