mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 00:37:01 +00:00
getdata: fix consecutive range definition regression
The added test demonstrates the issue. If a did not end with whitespace it was skipped. Reported-by: Fredrik Lysén <fredrik.lysen@uadm.uu.se> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
48caf5fb42
commit
7fc354827a
7 changed files with 8 additions and 1 deletions
|
|
@ -263,6 +263,7 @@ if (posix_fadvise(fileno(dhcpd_config), 0, 0, POSIX_FADV_SEQUENTIAL) != 0) {
|
|||
*
|
||||
* ...to be interpreted correctly. */
|
||||
c = ' ';
|
||||
break;
|
||||
} else if (argument == ITS_A_RANGE_SECOND_IP && i == 0) {
|
||||
range_p->last_ip = range_p->first_ip;
|
||||
goto newrange;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue