From: Harlan Stenn Date: Tue, 29 Apr 2003 20:56:14 +0000 (-0400) Subject: [Bug 48]: SOCKNUL test backwords, causes spurious error. X-Git-Tag: NTP_4_1_80_RC1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f927bb364f7b967df328a0a672f13863bd7f7b0;p=thirdparty%2Fntp.git [Bug 48]: SOCKNUL test backwords, causes spurious error. bk: 3eaee6ee65znfZiNJFVNit9TEcoxXg --- diff --git a/ntpd/ntp_intres.c b/ntpd/ntp_intres.c index 5386d4bec..78f80c4b6 100644 --- a/ntpd/ntp_intres.c +++ b/ntpd/ntp_intres.c @@ -1033,7 +1033,7 @@ doconfigure( "doconfigure: <%s> has peeraddr %s", ce->ce_name, stoa(&ce->peer_store)); #endif - if (dores && SOCKNUL(&(ce->peer_store))) { + if (dores && !SOCKNUL(&(ce->peer_store))) { if (!findhostaddr(ce)) { msyslog(LOG_ERR, "couldn't resolve `%s', giving up on it",