aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/leases.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/leases.c')
-rw-r--r--networking/udhcp/leases.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c
index 5d8775f63..ceec07345 100644
--- a/networking/udhcp/leases.c
+++ b/networking/udhcp/leases.c
@@ -119,8 +119,8 @@ uint32_t find_address(int check_expired)
119 uint32_t addr, ret; 119 uint32_t addr, ret;
120 struct dhcpOfferedAddr *lease = NULL; 120 struct dhcpOfferedAddr *lease = NULL;
121 121
122 addr = ntohl(server_config.start); /* addr is in host order here */ 122 addr = server_config.start_ip; /* addr is in host order here */
123 for (;addr <= ntohl(server_config.end); addr++) { 123 for (;addr <= server_config.end_ip; addr++) {
124 124
125 /* ie, 192.168.55.0 */ 125 /* ie, 192.168.55.0 */
126 if (!(addr & 0xFF)) continue; 126 if (!(addr & 0xFF)) continue;