conf: don't allow invalid last refclock option
This commit is contained in:
parent
d28d644b04
commit
f660aa9d7a
1 changed files with 3 additions and 2 deletions
5
conf.c
5
conf.c
|
@ -727,13 +727,14 @@ parse_refclock(char *line)
|
|||
n = 0;
|
||||
sel_option = SRC_SelectPrefer;
|
||||
} else {
|
||||
break;
|
||||
other_parse_error("Invalid refclock option");
|
||||
return;
|
||||
}
|
||||
line += n;
|
||||
}
|
||||
|
||||
if (*line) {
|
||||
other_parse_error("Invalid/unreadable refclock parameter");
|
||||
command_parse_error();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue