From: Miroslav Lichvar Date: Wed, 5 Jun 2013 09:48:48 +0000 (+0200) Subject: Abort on parse errors in refclock directive X-Git-Tag: 1.28-pre1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=809236689797c678a23fab4a13bde14904c6a38a;p=thirdparty%2Fchrony.git Abort on parse errors in refclock directive --- diff --git a/conf.c b/conf.c index a9e4f934..734d1f7c 100644 --- a/conf.c +++ b/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;