priv_add_address() is no longer invoked to signal the deletion of the
authorkrw <krw@openbsd.org>
Sun, 25 Jun 2017 00:44:49 +0000 (00:44 +0000)
committerkrw <krw@openbsd.org>
Sun, 25 Jun 2017 00:44:49 +0000 (00:44 +0000)
active address. So no need to check for the magic INADDR_ANY address.

sbin/dhclient/kroute.c

index b922f97..af3e545 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: kroute.c,v 1.93 2017/06/24 23:32:57 krw Exp $ */
+/*     $OpenBSD: kroute.c,v 1.94 2017/06/25 00:44:49 krw Exp $ */
 
 /*
  * Copyright 2012 Kenneth R Westerback <krw@openbsd.org>
@@ -707,17 +707,6 @@ priv_add_address(struct interface_info *ifi, struct imsg_add_address *imsg)
        struct sockaddr_in *in;
        int s;
 
-       if (imsg->addr.s_addr == INADDR_ANY) {
-               /* Notification that the active_addr has been deleted. */
-               active_addr.s_addr = INADDR_ANY;
-               quit = INTERNALSIG;
-               return;
-       }
-
-       /*
-        * Add specified address on specified interface.
-        */
-
        if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
                fatal("socket open failed");