diff options
Diffstat (limited to 'networking/udhcp/leases.c')
-rw-r--r-- | networking/udhcp/leases.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c index 403a8bc..c318856 100644 --- a/networking/udhcp/leases.c +++ b/networking/udhcp/leases.c @@ -159,8 +159,8 @@ uint32_t FAST_FUNC find_free_or_expired_address(const uint8_t *chaddr) if ((addr & 0xff) == 0xff) continue; net_addr = htonl(addr); - /* addr has a static lease? */ - if (reservedIp(server_config.static_leases, net_addr)) + /* is this a static lease addr? */ + if (is_nip_reserved(server_config.static_leases, net_addr)) continue; lease = find_lease_by_yiaddr(net_addr); |