dhcp-client: Don't report long time to expiration after lease expires.
authorBen Pfaff <blp@nicira.com>
Fri, 9 Jan 2009 00:47:01 +0000 (16:47 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 13 Jan 2009 01:17:15 +0000 (17:17 -0800)
commit9092532ddc84a4006d49b81db8be5ccc66b59181
tree24f5c9d9ac19b2c78c95ca337256bc01b460ce85
parente4d1978d6bae679654c9aabc08dac28343951614
dhcp-client: Don't report long time to expiration after lease expires.

There is a race between time advancing past the lease expiration time
and actually transitioning to the expired state.  Fix this race.

Found by Chris Eagle via Fortify.
lib/dhcp-client.c