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:00:28 +0000 (17:00 -0800)
commit0b76831f0bac4f50594a16a16c68217d0f8d48d6
treebbc13a17f1b1944d0591eb9246b73f6f3b6e20a5
parent517ad35c42b308867b641fe999e92572bbafff24
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