diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-05-08 12:50:30 +1200 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2019-05-09 22:39:27 +0000 |
commit | 3de7f430db6237487ac68922c80f6114dcb5434b (patch) | |
tree | 5619ef5a1c7d4cbba02f90687ca9a0a6ae7f03ee /lib/ldb/ldb_map | |
parent | 5dc86038835e607ba132a206b91320f12e7728af (diff) | |
download | samba-3de7f430db6237487ac68922c80f6114dcb5434b.tar.gz |
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>
Diffstat (limited to 'lib/ldb/ldb_map')
-rw-r--r-- | lib/ldb/ldb_map/ldb_map_outbound.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ldb/ldb_map/ldb_map_outbound.c b/lib/ldb/ldb_map/ldb_map_outbound.c index 1f1a7e80142..c823ba4a5c6 100644 --- a/lib/ldb/ldb_map/ldb_map_outbound.c +++ b/lib/ldb/ldb_map/ldb_map_outbound.c @@ -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); } |