1
0
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:
Douglas Bagnall 2019-05-08 12:50:30 +12:00 committed by Douglas Bagnall
parent 5dc8603883
commit 3de7f430db

View File

@ -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);
}