From: Miroslav Lichvar Date: Wed, 18 Nov 2015 11:21:23 +0000 (+0100) Subject: conf: don't allow invalid last refclock option X-Git-Tag: 2.3-pre1~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f660aa9d7af21aae014dceeff88b29bf1671f82d;p=thirdparty%2Fchrony.git conf: don't allow invalid last refclock option --- diff --git a/conf.c b/conf.c index 5cec3979..56266964 100644 --- a/conf.c +++ b/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; }