Commit 777df876 authored by Shawn Routhier's avatar Shawn Routhier
Browse files

Correct code to calculate timing values in client to compare

rebind value to infinity instead of renew value.
[ISC-Bugs #29062]
parent a185640c
......@@ -52,6 +52,18 @@ The system has only been tested on Linux, FreeBSD, and Solaris, and may not
work on other platforms. Please report any problems and suggested fixes to
<dhcp-users@isc.org>.
Changes since 4.1-ESV-R5
- Correct code to calculate timing values in client to compare
rebind value to infinity instead of renew value.
Thanks to Chenda Huang from H3C Technologies Co., Limited
for reporting this issue.
[ISC-Bugs #29062]
Changes since 4.1-ESV-R5rc2
- None
Changes since 4.1-ESV-R5rc1
- Rotate the lease file when running in v6 mode.
......
/* dhc6.c - DHCPv6 client routines. */
/*
* Copyright (c) 2012 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2006-2010 by Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and distribute this software for any
......@@ -4020,7 +4021,7 @@ dhc6_check_times(struct client_state *client)
/* Set rebind to 3/4 expiration interval. */
tmp = ia->starts;
tmp += use_expire + (use_expire / 2);
} else if (ia->renew == 0xffffffff)
} else if (ia->rebind == 0xffffffff)
tmp = MAX_TIME;
else
tmp = ia->starts + ia->rebind;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment