apps/netutils/dhcpd/dhcpd.c: Correct backward conditional logic in dhcpd_leaseexpired(). Noted by surya prakash <suryaec1684@gmail.com>.

This commit is contained in:
Gregory Nutt 2019-12-19 07:35:52 -06:00
parent 9defae8af6
commit 9b77f80740

View File

@ -336,7 +336,7 @@ static time_t dhcpd_time(void)
#ifdef HAVE_LEASE_TIME
static inline bool dhcpd_leaseexpired(struct lease_s *lease)
{
if (lease->expiry < dhcpd_time())
if (lease->expiry > dhcpd_time())
{
return false;
}