From: Roy Marples Date: Sun, 11 Dec 2011 21:14:49 +0000 (+0000) Subject: If an address is whipped out after adding it by something else, X-Git-Tag: v5.5.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b44ab74adbd63f4ec44e3d75440979ca1baa634;p=thirdparty%2Fdhcpcd.git If an address is whipped out after adding it by something else, don't crash. --- diff --git a/arp.c b/arp.c index 907ac113..1905508e 100644 --- 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);