summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-06-25 00:44:50 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-06-25 00:44:50 +0000
commit0e1d717107bd24bd68358430634573c2dc52baa4 (patch)
tree1f94b03bed9ab4e3f1bd42d7e7ea551a521649e4 /sbin
parent69b7259fed067bebf25f6719472564670e15fb5c (diff)
priv_add_address() is no longer invoked to signal the deletion of the
active address. So no need to check for the magic INADDR_ANY address.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/kroute.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c
index b922f976b9b..af3e5458631 100644
--- a/sbin/dhclient/kroute.c
+++ b/sbin/dhclient/kroute.c
@@ -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");