diff options
-rw-r--r-- | src/dhcpv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c index ba64142..ff2d8c2 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -944,7 +944,7 @@ raddr_out: for (uint32_t i = 0, try = (((uint32_t)rand()) % count) + start; i < count; ++i, try = (((try - start) + 1) % count) + start) { - if (config_find_lease_by_ipaddr(try)) + if (config_find_lease_by_ipaddr(htonl(try))) continue; if (list_empty(&iface->dhcpv4_assignments)) { |