]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3540] Cannot set minsane to 0 anymore
authorJuergen Perlinger <perlinger@ntp.org>
Sat, 27 Oct 2018 09:00:56 +0000 (11:00 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Sat, 27 Oct 2018 09:00:56 +0000 (11:00 +0200)
bk: 5bd4294804RCgJu8YVZuos_a5s9nCQ

ChangeLog
ntpd/ntp_config.c

index f381a093cf948c1202162000eaf2d8abbf1a1dcf..c768bde310a49621fe1863723be416e7268b4124 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+---
+* [Bug 3540] Cannot set minsane to 0 anymore <perlinger@ntp.org>
+  - applied patch by Andre Charbonneau
+
 ---
 (4.2.8p12) 2018/08/14 Released by Harlan Stenn <stenn@ntp.org>
 
index 89c920c1ecb6a86da4439bfb6cf0a6cd123711bb..85f36959c8cb8334aba909c1491e9292191eb160 100644 (file)
@@ -2194,8 +2194,8 @@ config_tos(
 
                case T_Minsane:
                        val = tos->value.d;
-                       if ((int)tos->value.d < 1)
-                               tos->value.d = 1;
+                       if ((int)tos->value.d < 0)
+                               tos->value.d = 0;
                        l_minsane = (int)tos->value.d;
                        break;
                }