we need to set the port properly in the parse_ip helper
[sahlberg/ctdb.git] / tcp / tcp_connect.c
index ac443d1f8e58d18e333e2fe20396ceb752c86b12..9d28d48a1f0d5a2c155bfd9b964b2d94965746c2 100644 (file)
@@ -109,7 +109,7 @@ static void ctdb_node_connect_write(struct event_context *ev, struct fd_event *f
 static int ctdb_tcp_get_address(struct ctdb_context *ctdb,
                                const char *address, ctdb_sock_addr *addr)
 {
-       if (parse_ip(address, NULL, addr) == 0) {
+       if (parse_ip(address, NULL, 0, addr) == 0) {
                DEBUG(DEBUG_CRIT, (__location__ " Unparsable address : %s.\n", address));
                return -1;
        }