From: Harlan Stenn Date: Thu, 28 Jun 2012 06:37:22 +0000 (-0700) Subject: CID 709207: Initialize "quality" for ulink_receive X-Git-Tag: NTP_4_2_7P286~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=371952a264e03f400dc734c1218ca70491c29fdb;p=thirdparty%2Fntp.git CID 709207: Initialize "quality" for ulink_receive bk: 4febfba2brPQnYf-Ne60QuYm84PFYg --- diff --git a/ChangeLog b/ChangeLog index c3979b0c3..3c624755f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ * CID 709169: check return from open("/dev/null", 0) and friends. +* CID 709207: Initialize "quality" for ulink_receive. (4.2.7p285) 2012/06/18 Released by Harlan Stenn * [Bug 2227] Enable mrulist access control via "restrict ... nomrulist". * Automake-1.12 wants us to use AM_PROG_AR. diff --git a/ntpd/refclock_ulink.c b/ntpd/refclock_ulink.c index cd953cdc0..d8f24a506 100644 --- a/ntpd/refclock_ulink.c +++ b/ntpd/refclock_ulink.c @@ -191,13 +191,13 @@ ulink_receive( struct refclockproc *pp; struct peer *peer; - l_fp trtmp; /* arrival timestamp */ - int quality; /* quality indicator */ - int temp; /* int temp */ - char syncchar; /* synchronization indicator */ - char leapchar; /* leap indicator */ - char modechar; /* model 320 mode flag */ - char siglchar; /* model difference between 33x/325 */ + l_fp trtmp; /* arrival timestamp */ + int quality = INT_MAX; /* quality indicator */ + int temp; /* int temp */ + char syncchar; /* synchronization indicator */ + char leapchar; /* leap indicator */ + char modechar; /* model 320 mode flag */ + char siglchar; /* model difference between 33x/325 */ char char_quality[2]; /* temp quality flag */ /*