From: Miroslav Lichvar Date: Fri, 26 Sep 2014 13:25:33 +0000 (+0200) Subject: ntp: fix NSR_TakeSourcesOffline() X-Git-Tag: 2.0-pre1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7eeb57a32ac40cd8084964b79f32dafbb8a88f8;p=thirdparty%2Fchrony.git ntp: fix NSR_TakeSourcesOffline() This was broken when switching to dynamic allocation in commit 9e7193. --- diff --git a/ntp_sources.c b/ntp_sources.c index 8afef5e1..a81007aa 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); }