apps/netutils/dhcpd/dhcpd.c: Correct backward conditional logic in dhcpd_leaseexpired(). Noted by surya prakash <suryaec1684@gmail.com>.
This commit is contained in:
parent
9defae8af6
commit
9b77f80740
@ -336,7 +336,7 @@ static time_t dhcpd_time(void)
|
|||||||
#ifdef HAVE_LEASE_TIME
|
#ifdef HAVE_LEASE_TIME
|
||||||
static inline bool dhcpd_leaseexpired(struct lease_s *lease)
|
static inline bool dhcpd_leaseexpired(struct lease_s *lease)
|
||||||
{
|
{
|
||||||
if (lease->expiry < dhcpd_time())
|
if (lease->expiry > dhcpd_time())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user