mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:45:07 -05:00
ntp: print warning when source is added with unknown key
This commit is contained in:
@@ -309,6 +309,10 @@ NCR_GetInstance(NTP_Remote_Address *remote_addr, NTP_Source_Type type, SourcePar
|
|||||||
} else {
|
} else {
|
||||||
result->do_auth = 1;
|
result->do_auth = 1;
|
||||||
result->auth_key_id = params->authkey;
|
result->auth_key_id = params->authkey;
|
||||||
|
if (!KEY_KeyKnown(result->auth_key_id)) {
|
||||||
|
LOG(LOGS_WARN, LOGF_NtpCore, "Source %s added with unknown key %lu",
|
||||||
|
UTI_IPToString(&result->remote_addr.ip_addr), result->auth_key_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
result->max_delay = params->max_delay;
|
result->max_delay = params->max_delay;
|
||||||
|
|||||||
Reference in New Issue
Block a user