mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:35:06 -05:00
refclock: fix invalid warning in local mode
A refclock in the local mode is locked to itself by design. Reported-by: Dan Drown <dan-ntp@drown.org>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user