mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
ctdb: Covscan: unchecked return value for trbt_traversearray32()
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
91d1d0e4c8
commit
8cb6565011
@ -96,6 +96,7 @@ create_merged_ip_list(struct ipalloc_state *ipalloc_state)
|
||||
struct public_ip_list *ip_list;
|
||||
struct ctdb_public_ip_list *public_ips;
|
||||
struct trbt_tree *ip_tree;
|
||||
int ret;
|
||||
|
||||
ip_tree = trbt_create(ipalloc_state, 0);
|
||||
|
||||
@ -138,7 +139,11 @@ create_merged_ip_list(struct ipalloc_state *ipalloc_state)
|
||||
}
|
||||
|
||||
ip_list = NULL;
|
||||
trbt_traversearray32(ip_tree, IP_KEYLEN, getips_count_callback, &ip_list);
|
||||
ret = trbt_traversearray32(ip_tree, IP_KEYLEN, getips_count_callback, &ip_list);
|
||||
if (ret != 0) {
|
||||
DBG_ERR("Error traversing the IP tree.\n");
|
||||
}
|
||||
|
||||
talloc_free(ip_tree);
|
||||
|
||||
return ip_list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user