From: Miroslav Lichvar Date: Wed, 6 Apr 2011 14:59:40 +0000 (+0200) Subject: Don't crash when sources report is requested soon after start X-Git-Tag: 1.25-pre2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bca7819247c6487f952318669c47668b052471d2;p=thirdparty%2Fchrony.git Don't crash when sources report is requested soon after start --- diff --git a/sources.c b/sources.c index a019f92a..3a82b2b4 100644 --- a/sources.c +++ b/sources.c @@ -1083,6 +1083,7 @@ SRC_ReportSource(int index, RPT_SourceReport *report, struct timeval *now) case SRC_JITTERY: report->state = RPT_JITTERY; break; + case SRC_OK: case SRC_BAD_STATS: case SRC_UNREACHABLE: report->state = RPT_UNREACH;