From c7eeb57a32ac40cd8084964b79f32dafbb8a88f8 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 26 Sep 2014 15:25:33 +0200 Subject: [PATCH] ntp: fix NSR_TakeSourcesOffline() This was broken when switching to dynamic allocation in commit 9e7193. --- ntp_sources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_sources.c b/ntp_sources.c index 8afef5e..a81007a 100644 --- a/ntp_sources.c +++ b/ntp_sources.c @@ -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); }