From: Miroslav Lichvar Date: Mon, 9 May 2022 14:41:27 +0000 (+0200) Subject: refclock: fix invalid warning in local mode X-Git-Tag: 4.3-pre1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3b376cf0a5369ba0722d1d287fbc3506f4933ad;p=thirdparty%2Fchrony.git refclock: fix invalid warning in local mode A refclock in the local mode is locked to itself by design. Reported-by: Dan Drown --- diff --git a/refclock.c b/refclock.c index 42acd53c..272777ab 100644 --- a/refclock.c +++ b/refclock.c @@ -308,7 +308,7 @@ RCL_StartRefclocks(void) break; } - if (lock_index == -1 || lock_index == i) + if (lock_index == -1 || (lock_index == i && !inst->local)) LOG(LOGS_WARN, "Invalid lock refid %s", UTI_RefidToString(inst->lock_ref)); }