summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-02-19 17:40:52 +0000
committerTed Lemon <source@isc.org>1999-02-19 17:40:52 +0000
commite0ec739db35424099983a41d90af0091ab708b29 (patch)
treed413584a904528ad85e37dc2f6768696ee7fde76
parent221dc224466208f0d7b723ff9e2ca3c4fba19625 (diff)
downloadisc-dhcp-e0ec739db35424099983a41d90af0091ab708b29.tar.gz
Generate new xid on DHCPRELEASE.
-rw-r--r--client/dhclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/dhclient.c b/client/dhclient.c
index e43fb141..15f6db8c 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -56,7 +56,7 @@
#ifndef lint
static char ocopyright[] =
-"$Id: dhclient.c,v 1.44.2.18 1999/02/16 20:36:57 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhclient.c,v 1.44.2.19 1999/02/19 17:40:52 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -1701,7 +1701,7 @@ void make_release (ip, lease)
ip -> client -> packet.htype = ip -> hw_address.htype;
ip -> client -> packet.hlen = ip -> hw_address.hlen;
ip -> client -> packet.hops = 0;
- ip -> client -> packet.xid = ip -> client -> xid;
+ ip -> client -> packet.xid = random ();
ip -> client -> packet.secs = 0;
ip -> client -> packet.flags = 0;
memcpy (&ip -> client -> packet.ciaddr,