From 0674029b5870b1e361c4a8e4295f2c0f0d207659 Mon Sep 17 00:00:00 2001 From: krw Date: Sun, 25 Jun 2017 00:44:49 +0000 Subject: [PATCH] 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. --- sbin/dhclient/kroute.c | 13 +------------ 1 file changed, 1 insertion(+), 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 @@ -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"); -- 2.20.1