mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 07:55:06 -05:00
ntp: fix NSR_TakeSourcesOffline()
This was broken when switching to dynamic allocation in commit 9e7193.
This commit is contained in:
@@ -610,7 +610,7 @@ NSR_TakeSourcesOffline(IPAddr *mask, IPAddr *address)
|
||||
}
|
||||
|
||||
/* Take sync peer offline as last to avoid reference switching */
|
||||
if (syncpeer >= 0) {
|
||||
if (syncpeer) {
|
||||
NCR_TakeSourceOffline(syncpeer->data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user