mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ldb_map: check a return value (CID 241354)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
5dc8603883
commit
3de7f430db
@ -921,6 +921,9 @@ static int map_subtree_collect_remote(struct ldb_module *module, void *mem_ctx,
|
||||
}
|
||||
|
||||
map = map_attr_find_local(data, tree->u.equality.attr);
|
||||
if (map == NULL) {
|
||||
return LDB_ERR_OPERATIONS_ERROR;
|
||||
}
|
||||
if (map->convert_operator) {
|
||||
return map->convert_operator(module, mem_ctx, new, tree);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user