mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 03:45:07 -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;
|
lock_index = j;
|
||||||
break;
|
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;
|
inst->lock_ref = lock_index;
|
||||||
|
|||||||
Reference in New Issue
Block a user