mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-30 21:53:15 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue