From: Roy Marples Date: Wed, 6 Feb 2019 19:38:01 +0000 (+0000) Subject: IP4: No need to set a variable to arp announce the address X-Git-Tag: v7.1.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=012755aa9c9d8916da88d164d91614b184a27dc5;p=thirdparty%2Fdhcpcd.git IP4: No need to set a variable to arp announce the address --- diff --git a/src/ipv4.c b/src/ipv4.c index 44f8a15d..57f70a77 100644 --- a/src/ipv4.c +++ b/src/ipv4.c @@ -706,15 +706,12 @@ ipv4_applyaddr(void *arg) (DHCPCD_EXITING | DHCPCD_PERSISTENT)) { if (state->added) { - struct in_addr addr; - - addr = lease->addr; delete_address(ifp); rt_build(ifp->ctx, AF_INET); #ifdef ARP /* Announce the preferred address to * kick ARP caches. */ - arp_announceaddr(ifp->ctx, &addr); + arp_announceaddr(ifp->ctx, &lease->addr); #endif } script_runreason(ifp, state->reason);