Eliminate redundant checks for expired leases in ifi->leasedb. Simply
authorkrw <krw@openbsd.org>
Tue, 2 Mar 2021 14:32:14 +0000 (14:32 +0000)
committerkrw <krw@openbsd.org>
Tue, 2 Mar 2021 14:32:14 +0000 (14:32 +0000)
commitdccc86af6c5585e2987a33c0ae09840af0eda8e0
tree38007e064d15be908bb324b05cf065aa8c6b4eb4
parent15cbecf029d7b235e2c0ca91ccf4ed5d80e158b8
Eliminate redundant checks for expired leases in ifi->leasedb. Simply
toss expired leases when writing the list to disk. And write the list
to disk before using a lease from it. Just make sure ifi->active
isn't tossed.
sbin/dhclient/dhclient.c