mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 16:45:07 -05:00
conf: don't allow invalid last refclock option
This commit is contained in:
5
conf.c
5
conf.c
@@ -727,13 +727,14 @@ parse_refclock(char *line)
|
|||||||
n = 0;
|
n = 0;
|
||||||
sel_option = SRC_SelectPrefer;
|
sel_option = SRC_SelectPrefer;
|
||||||
} else {
|
} else {
|
||||||
break;
|
other_parse_error("Invalid refclock option");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
line += n;
|
line += n;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*line) {
|
if (*line) {
|
||||||
other_parse_error("Invalid/unreadable refclock parameter");
|
command_parse_error();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user