Commit 9de1aa9b authored by Simon Kelley's avatar Simon Kelley

Fix parsing of IAID>MAXINT in leases file.

Thanks to Christof Meerwald for the bug report.
parent 6f9aaa93
......@@ -115,7 +115,7 @@ void lease_init(time_t now)
s++;
}
hw_type = atoi(s);
hw_type = strtoul(s, NULL, 10);
if ((lease = lease6_allocate(&addr.addr.addr6, lease_type)))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment