mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
Version 2.2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
61b6acf2f5
commit
658fe50312
14 changed files with 697 additions and 163 deletions
|
|
@ -104,6 +104,12 @@ do_counting (void)
|
|||
if (range_p->last_ip < leases[i])
|
||||
{
|
||||
range_p++;
|
||||
/* Break loop before trying to access memorory that is
|
||||
* not allocated. */
|
||||
if (range_p - ranges > num_ranges)
|
||||
{
|
||||
break;
|
||||
}
|
||||
block_size = range_p->last_ip - range_p->first_ip - 1;
|
||||
if (range_p->shared_net)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue