From: Juergen Perlinger Date: Sat, 27 Oct 2018 09:00:56 +0000 (+0200) Subject: [Bug 3540] Cannot set minsane to 0 anymore X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=750458c730eaae7ca74ff9f9ee8bde1251cb925f;p=thirdparty%2Fntp.git [Bug 3540] Cannot set minsane to 0 anymore bk: 5bd4294804RCgJu8YVZuos_a5s9nCQ --- diff --git a/ChangeLog b/ChangeLog index f381a093c..c768bde31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +--- +* [Bug 3540] Cannot set minsane to 0 anymore + - applied patch by Andre Charbonneau + --- (4.2.8p12) 2018/08/14 Released by Harlan Stenn diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c index 89c920c1e..85f36959c 100644 --- a/ntpd/ntp_config.c +++ b/ntpd/ntp_config.c @@ -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; }