diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-02-15 14:40:04 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-02-15 14:40:04 +0000 |
commit | e6a77830598eaece859420dbf8ea78168ad66631 (patch) | |
tree | d4aa87ba341792f83176556dd13e261f0263af12 /sbin/dhclient | |
parent | b81f01ff8ee6379d5c9b156df9d649d37bdf5d33 (diff) |
Unbreak DISCOVER by initializing xid from correct field.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index a6d584fc404..c98febd8176 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.229 2013/02/14 22:18:12 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.230 2013/02/15 14:40:03 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -620,7 +620,7 @@ state_init(void) /* Make a DHCPDISCOVER packet, and set appropriate per-interface flags. */ make_discover(client->active); - client->xid = client->packet.xid; + client->xid = client->bootrequest_packet.xid; client->destination.s_addr = INADDR_BROADCAST; client->state = S_SELECTING; client->first_sending = time(NULL); |