mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
ntp: require port match in address update
In NSR_UpdateSourceNtpAddress() and other updates of the address require that the old port matches the current source's port.
This commit is contained in:
@@ -370,7 +370,7 @@ change_source_address(NTP_Remote_Address *old_addr, NTP_Remote_Address *new_addr
|
|||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
found = find_slot2(old_addr, &slot1);
|
found = find_slot2(old_addr, &slot1);
|
||||||
if (found == 0)
|
if (found != 2)
|
||||||
return NSR_NoSuchSource;
|
return NSR_NoSuchSource;
|
||||||
|
|
||||||
/* Make sure there is no other source using the new address (with the same
|
/* Make sure there is no other source using the new address (with the same
|
||||||
|
|||||||
Reference in New Issue
Block a user