]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 48]: SOCKNUL test backwords, causes spurious error.
authorHarlan Stenn <stenn@ntp.org>
Tue, 29 Apr 2003 20:56:14 +0000 (16:56 -0400)
committerHarlan Stenn <stenn@ntp.org>
Tue, 29 Apr 2003 20:56:14 +0000 (16:56 -0400)
bk: 3eaee6ee65znfZiNJFVNit9TEcoxXg

ntpd/ntp_intres.c

index 5386d4becb018930d5db45748c37a73769037d62..78f80c4b66e2e09c2078a214892b1f691abf5437 100644 (file)
@@ -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",