]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fix (unused) reversed tests
authorHarlan Stenn <stenn@ntp.org>
Sun, 16 Oct 2005 07:18:13 +0000 (03:18 -0400)
committerHarlan Stenn <stenn@ntp.org>
Sun, 16 Oct 2005 07:18:13 +0000 (03:18 -0400)
bk: 4351feb5h4_LQhljyzGCRKAjOj58-g

ntpd/ntp_intres.c

index 4a480b882fa1c385106385f99534da463141ab0a..eb5ab5eb224cc877b72bdb67926b51625711062f 100644 (file)
@@ -459,13 +459,13 @@ findhostaddr(
 
        checkparent();          /* make sure our guy is still running */
 
-       if (entry->ce_name != NULL && SOCKNUL(&entry->peer_store)) {
+       if (entry->ce_name != NULL && !SOCKNUL(&entry->peer_store)) {
                /* HMS: Squawk? */
                msyslog(LOG_ERR, "findhostaddr: both ce_name and ce_peeraddr are defined...");
                return 1;
        }
 
-        if (entry->ce_name == NULL && !SOCKNUL(&entry->peer_store)) {
+        if (entry->ce_name == NULL && SOCKNUL(&entry->peer_store)) {
                msyslog(LOG_ERR, "findhostaddr: both ce_name and ce_peeraddr are undefined!");
                return 0;
        }