mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
refclock: warn if lock refid is invalid
Log a warning message if the specified lock refid doesn't match any existing refclock or it matches the refclock which has the lock option itself.
This commit is contained in:
@@ -296,6 +296,9 @@ RCL_StartRefclocks(void)
|
||||
lock_index = j;
|
||||
break;
|
||||
}
|
||||
|
||||
if (lock_index == -1 || lock_index == i)
|
||||
LOG(LOGS_WARN, "Invalid lock refid %s", UTI_RefidToString(inst->lock_ref));
|
||||
}
|
||||
|
||||
inst->lock_ref = lock_index;
|
||||
|
||||
Reference in New Issue
Block a user