From: Juergen Perlinger Date: Wed, 11 Apr 2018 04:47:08 +0000 (+0200) Subject: [Bug 3469] Incomplete string compare [...] in is_refclk_addr X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=848de2eb9c91d195f655dcf5ddd863d60e61032c;p=thirdparty%2Fntp.git [Bug 3469] Incomplete string compare [...] in is_refclk_addr bk: 5acd934cU7qZqVuMLsypbbyesB743g --- diff --git a/ChangeLog b/ChangeLog index 03a8065c1..e8f1b2296 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ * [Bug 3471] Check for openssl/[ch]mac.h. HStenn. - add #define ENABLE_CMAC support in configure. HStenn. * [Bug 3470] ntpd4.2.8p11 fails to compile without OpenSSL +* [Bug 3469] Incomplete string compare [...] in is_refclk_addr + - patch by Stephen Friedl * [Bug 3467] Potential memory fault in ntpq [...] - fixed IO redirection and CTRL-C handling in ntq and ntpdc * [Bug 3465] Default TTL values cannot be used diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c index ff45a8336..f3c283cb6 100644 --- a/ntpd/ntp_config.c +++ b/ntpd/ntp_config.c @@ -4850,7 +4850,7 @@ is_refclk_addr( const address_node * addr ) { - return addr && addr->address && !strncmp(addr->address, "127.127.", 6); + return addr && addr->address && !strncmp(addr->address, "127.127.", 8); } static void