ntp: fix NSR_TakeSourcesOffline()

This was broken when switching to dynamic allocation in commit 9e7193.
This commit is contained in:
Miroslav Lichvar 2014-09-26 15:25:33 +02:00
parent 361726b3ae
commit c7eeb57a32

View file

@ -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);
}