From: Roy Marples Date: Sat, 27 Feb 2010 08:37:00 +0000 (+0000) Subject: Only UDP based on current state, not the offer. X-Git-Tag: v5.2.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b8fcb98fa16a039c889a5a5efed51cc5822318e;p=thirdparty%2Fdhcpcd.git Only UDP based on current state, not the offer. --- diff --git a/dhcpcd.c b/dhcpcd.c index 24db6243..ac077ad2 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -720,8 +720,8 @@ open_sockets(struct interface *iface) } if (iface->udp_fd == -1 && iface->addr.s_addr != 0 && - iface->state->offer != NULL && - iface->state->offer->cookie == htonl(MAGIC_COOKIE)) + iface->state->new != NULL && + iface->state->new->cookie == htonl(MAGIC_COOKIE)) { if (open_udp_socket(iface) == -1 && errno != EADDRINUSE) syslog(LOG_ERR, "%s: open_udp_socket: %m", iface->name);