]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed sense of inet_aton test
authorAndrew Tridgell <tridge@samba.org>
Sun, 8 Jul 2007 11:09:09 +0000 (21:09 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 8 Jul 2007 11:09:09 +0000 (21:09 +1000)
(This used to be ctdb commit ed5cf9b43c49312d3736e85077863d23990acce8)

ctdb/server/ctdb_takeover.c

index 0b5d9d6b8916138c20f003d95f1cf3bb3ab7155f..b2d73ff3d1312e636b566d67225a0faa31ce4bcd 100644 (file)
@@ -785,7 +785,7 @@ void ctdb_release_all_ips(struct ctdb_context *ctdb)
                                          ctdb->takeover.interface, 
                                          node->public_address,
                                          node->public_netmask_bits);
-                       if (inet_aton(node->public_address, &in) == 0) {
+                       if (inet_aton(node->public_address, &in) != 0) {
                                release_kill_clients(ctdb, in);
                        }
                }