]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
conf: don't allow invalid last refclock option
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 18 Nov 2015 11:21:23 +0000 (12:21 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 18 Nov 2015 11:49:05 +0000 (12:49 +0100)
conf.c

diff --git a/conf.c b/conf.c
index 5cec3979ea0ed72e6b2ce2071a4a42b50a3f0d4d..56266964c3ac3a1d2571410b095a519397c60a86 100644 (file)
--- 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;
   }