1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

ctdb-tests: Check an unchecked return value

This can't fail but check it for completeness... just in case Coverity
decides to notice it.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Mon Oct 16 09:27:17 CEST 2017 on sn-devel-144
This commit is contained in:
Martin Schwenke 2017-10-11 19:16:25 +11:00 committed by Martin Schwenke
parent e0cf8a4d0d
commit 71bedfabbf

View File

@ -1966,11 +1966,17 @@ static void control_reload_nodes_file(TALLOC_CTX *mem_ctx,
}
if (nodemap->node[i].flags & NODE_FLAGS_DELETED) {
int ret;
node = &node_map->node[i];
node->flags |= NODE_FLAGS_DELETED;
ctdb_sock_addr_from_string("0.0.0.0", &node->addr,
false);
ret = ctdb_sock_addr_from_string("0.0.0.0", &node->addr,
false);
if (ret != 0) {
/* Can't happen, but Coverity... */
goto fail;
}
continue;
}