mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-test: Fix CID 1419118 (Error handling issues)
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
9b880defb6
commit
e0cf8a4d0d
@ -251,7 +251,11 @@ static bool nodemap_parse(struct node_map *node_map)
|
||||
}
|
||||
node = &node_map->node[node_map->num_nodes];
|
||||
|
||||
ctdb_sock_addr_from_string(ip, &node->addr, false);
|
||||
ret = ctdb_sock_addr_from_string(ip, &node->addr, false);
|
||||
if (ret != 0) {
|
||||
fprintf(stderr, "bad line (%s) - invalid IP\n", line);
|
||||
continue;
|
||||
}
|
||||
ctdb_sock_addr_set_port(&node->addr, CTDB_PORT);
|
||||
node->pnn = pnn;
|
||||
node->flags = flags;
|
||||
|
Loading…
Reference in New Issue
Block a user