]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Bug 2741 - Incorrect buffer check in parsestatus()
authorMartin Burnicki <burnicki@ntp.org>
Wed, 28 Jan 2015 22:39:54 +0000 (23:39 +0100)
committerMartin Burnicki <burnicki@ntp.org>
Wed, 28 Jan 2015 22:39:54 +0000 (23:39 +0100)
bk: 54c9653aQq_SLYk5ziVV_hYzlIaPzQ

ChangeLog
ntpd/refclock_parse.c

index 46e29674b3288636d8fd56f79e5f2c69ad41dba8..e19083d924e5ca6a0575d96fe8b979193fbd1c10 100644 (file)
--- 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.
index 632f52d919992879a4577dab6b2d02c0fa744330..f815ad38c6655e9da4b2ef61d58604cd898f11be 100644 (file)
@@ -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);
                }