Abort on parse errors in refclock directive
This commit is contained in:
parent
066254b6c8
commit
8092366897
1 changed files with 5 additions and 1 deletions
6
conf.c
6
conf.c
|
@ -647,12 +647,16 @@ parse_refclock(char *line)
|
|||
n = 0;
|
||||
sel_option = SRC_SelectPrefer;
|
||||
} else {
|
||||
other_parse_error("Invalid refclock parameter");
|
||||
break;
|
||||
}
|
||||
line += n;
|
||||
}
|
||||
|
||||
if (*line) {
|
||||
other_parse_error("Invalid/unreadable refclock parameter");
|
||||
return;
|
||||
}
|
||||
|
||||
refclock_sources[i].driver_name = name;
|
||||
refclock_sources[i].driver_parameter = param;
|
||||
refclock_sources[i].driver_poll = dpoll;
|
||||
|
|
Loading…
Reference in a new issue