]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3469] Incomplete string compare [...] in is_refclk_addr
authorJuergen Perlinger <perlinger@ntp.org>
Wed, 11 Apr 2018 04:47:08 +0000 (06:47 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Wed, 11 Apr 2018 04:47:08 +0000 (06:47 +0200)
bk: 5acd934cU7qZqVuMLsypbbyesB743g

ChangeLog
ntpd/ntp_config.c

index 03a8065c1d479c8af2bf652dcd14721a7398b593..e8f1b22969df32e983004ddb6551fb1c4afe49f3 100644 (file)
--- 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 <perlinger@ntp.org>
+* [Bug 3469] Incomplete string compare [...] in is_refclk_addr <perlinger@ntp.org>
+  - patch by Stephen Friedl
 * [Bug 3467] Potential memory fault in ntpq [...] <perlinger@ntp.org>
   - fixed IO redirection and CTRL-C handling in ntq and ntpdc
 * [Bug 3465] Default TTL values cannot be used <perlinger@ntp.org>
index ff45a8336af1705936be2ec3ff8a6913af061836..f3c283cb692fc3f36066eb7dc6bc478591cfa27a 100644 (file)
@@ -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