Fix parsing of IAID>MAXINT in leases file.

Thanks to Christof Meerwald for the bug report.
This commit is contained in:
Simon Kelley
2013-04-10 11:15:58 +01:00
parent 6f9aaa93e9
commit 9de1aa9b7f

View File

@@ -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)))
{