From: Roy Marples Date: Fri, 17 Oct 2014 16:44:55 +0000 (+0000) Subject: Only open the IP UDP port if we have added the address X-Git-Tag: v6.5.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4c19e25bf3205c49a23c79b348ee0b23e03de10;p=thirdparty%2Fdhcpcd.git Only open the IP UDP port if we have added the address --- diff --git a/dhcp.c b/dhcp.c index ea7c159a..1e1cd66b 100644 --- a/dhcp.c +++ b/dhcp.c @@ -1601,7 +1601,7 @@ send_message(struct interface *iface, uint8_t type, if (dhcp_open(iface) == -1) return; - if (state->addr.s_addr != INADDR_ANY && + if (state->added && state->addr.s_addr != INADDR_ANY && state->new != NULL && (state->new->cookie == htonl(MAGIC_COOKIE) || iface->options->options & DHCPCD_INFORM))