mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-29 05:17:57 +00:00
[master] Print preferred life and max life as unsigned ints
[rt37084] Change how we print the preferred_live and max_life variables into envvironment strings in the client code from being a signed int to an unsigned int.
This commit is contained in:
parent
992dc76542
commit
cb8c997e48
5
RELNOTES
5
RELNOTES
@ -209,6 +209,11 @@ by Eric Young (eay@cryptsoft.com).
|
||||
files.
|
||||
[ISC-Bugs #38078]
|
||||
|
||||
- In the client code change the way preferred_life and max_life are printed
|
||||
for environment variables to be unsigned rather than signed.
|
||||
Thanks to Jiri Popelka at Red Hat for the bug report and patch.
|
||||
[ISC-Bugs #37084]
|
||||
|
||||
Changes since 4.3.1b1
|
||||
|
||||
- Modify the linux and openwrt dhclient scripts to process information
|
||||
|
@ -3862,10 +3862,10 @@ dhc6_marshall_values(const char *prefix, struct client_state *client,
|
||||
}
|
||||
client_envadd(client, prefix, "life_starts", "%d",
|
||||
(int)(addr->starts));
|
||||
client_envadd(client, prefix, "preferred_life", "%d",
|
||||
(int)(addr->preferred_life));
|
||||
client_envadd(client, prefix, "max_life", "%d",
|
||||
(int)(addr->max_life));
|
||||
client_envadd(client, prefix, "preferred_life", "%u",
|
||||
addr->preferred_life);
|
||||
client_envadd(client, prefix, "max_life", "%u",
|
||||
addr->max_life);
|
||||
}
|
||||
|
||||
/* ia fields. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user