From: Martin Burnicki Date: Wed, 28 Jan 2015 22:39:54 +0000 (+0100) Subject: Bug 2741 - Incorrect buffer check in parsestatus() X-Git-Tag: NTP_4_2_8P1_RC2~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3c03fc8064ff02cc5b24180d03add4145810f80;p=thirdparty%2Fntp.git Bug 2741 - Incorrect buffer check in parsestatus() bk: 54c9653aQq_SLYk5ziVV_hYzlIaPzQ --- diff --git a/ChangeLog b/ChangeLog index 46e29674b..e19083d92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ -* [Bug 2738] Missing buffer initialisation in parsestate(). +* [Bug 2741] Incorrect buffer check in refclocK_parse.c::parsestatus(). +* [Bug 2738] Missing buffer initialisation in refclocK_parse.c::parsestate(). * [Bug 2739] Parse driver with PPS enabled occasionaly evaluates PPS timestamp with wrong sign. Removed some German umlauts. diff --git a/ntpd/refclock_parse.c b/ntpd/refclock_parse.c index 632f52d91..f815ad38c 100644 --- a/ntpd/refclock_parse.c +++ b/ntpd/refclock_parse.c @@ -2613,7 +2613,7 @@ parsestatus( { if (flagstrings[i].bit & lstate) { - if (t == buffer) + if (t != buffer) t = ap(buffer, size, t, "; "); t = ap(buffer, size, t, "%s", flagstrings[i].name); }