---
+
+* [Bug 1597] packet processing ignores RATE KoD packets, because of
+ a bug in string comparison.
+
+---
(4.2.6p2) 2010/07/09 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 1581] size_t printf format string mismatches, IRIG string buffers
ref_char[0], ref_char[1], ref_char[2], ref_char[3]);
/* If it's a KOD packet we'll just use the KOD information */
if (ref_char[0] != 'X') {
- if (strncmp(ref_char, "DENY", 4))
+ if (strncmp(ref_char, "DENY", 4) == 0)
return KOD_DEMOBILIZE;
- if (strncmp(ref_char, "RSTR", 4))
+ if (strncmp(ref_char, "RSTR", 4) == 0)
return KOD_DEMOBILIZE;
- if (strncmp(ref_char, "RATE", 4))
+ if (strncmp(ref_char, "RATE", 4) == 0)
return KOD_RATE;
/* There are other interesting kiss codes which might be interesting for authentication */
}