mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 05:15:06 -05:00
Abort on parse errors in refclock directive
This commit is contained in:
6
conf.c
6
conf.c
@@ -647,12 +647,16 @@ parse_refclock(char *line)
|
|||||||
n = 0;
|
n = 0;
|
||||||
sel_option = SRC_SelectPrefer;
|
sel_option = SRC_SelectPrefer;
|
||||||
} else {
|
} else {
|
||||||
other_parse_error("Invalid refclock parameter");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
line += n;
|
line += n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*line) {
|
||||||
|
other_parse_error("Invalid/unreadable refclock parameter");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
refclock_sources[i].driver_name = name;
|
refclock_sources[i].driver_name = name;
|
||||||
refclock_sources[i].driver_parameter = param;
|
refclock_sources[i].driver_parameter = param;
|
||||||
refclock_sources[i].driver_poll = dpoll;
|
refclock_sources[i].driver_poll = dpoll;
|
||||||
|
|||||||
Reference in New Issue
Block a user