From 9b77f80740c1c1226ad5fcc423c9775bd4e89df6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 19 Dec 2019 07:35:52 -0600 Subject: [PATCH] apps/netutils/dhcpd/dhcpd.c: Correct backward conditional logic in dhcpd_leaseexpired(). Noted by surya prakash . --- netutils/dhcpd/dhcpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netutils/dhcpd/dhcpd.c b/netutils/dhcpd/dhcpd.c index 6c6603f84..36387e1a7 100644 --- a/netutils/dhcpd/dhcpd.c +++ b/netutils/dhcpd/dhcpd.c @@ -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; }