diff options
-rw-r--r-- | RELNOTES | 5 | ||||
-rw-r--r-- | client/dhc6.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -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 diff --git a/client/dhc6.c b/client/dhc6.c index c724b581..04a8fa00 100644 --- a/client/dhc6.c +++ b/client/dhc6.c @@ -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. */ |