]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fix sense of inet_aton() call
authorAndrew Tridgell <tridge@samba.org>
Tue, 29 May 2007 02:26:21 +0000 (12:26 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 29 May 2007 02:26:21 +0000 (12:26 +1000)
(This used to be ctdb commit 39788dd804beee479f0cb3be8f4b984c3c7aad2e)

ctdb/takeover/ctdb_takeover.c

index 1058588e91a993f818c36b80ee9ce2301aff4973..931217df0fefd6d3db481a05cc18e2dd0825d54a 100644 (file)
@@ -247,7 +247,7 @@ int ctdb_set_public_addresses(struct ctdb_context *ctdb, const char *alist)
                        return -1;
                }
 
-               if (inet_aton(ctdb->nodes[i]->public_address, &in) != 0) {
+               if (inet_aton(ctdb->nodes[i]->public_address, &in) == 0) {
                        DEBUG(0,("Badly formed IP '%s' in public address list\n", ctdb->nodes[i]->public_address));
                        return -1;
                }