diff options
author | Volker Lendecke <vl@samba.org> | 2016-06-28 14:41:19 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-06-28 18:48:08 +0200 |
commit | 4e20d2448e2d43f2bb36ea8a131c7677befed242 (patch) | |
tree | d4e2e60d708ea3f9e9f825068a3c119c5ddfb946 /lib/ldb | |
parent | 874a9d9c87c69b5dd62494c6372aa196daadc325 (diff) | |
download | samba-4e20d2448e2d43f2bb36ea8a131c7677befed242.tar.gz |
ldb: Fix CID 1362935: CHECKED_RETURN
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'lib/ldb')
-rw-r--r-- | lib/ldb/ldb_map/ldb_map.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ldb/ldb_map/ldb_map.c b/lib/ldb/ldb_map/ldb_map.c index 66b00592921..f2a86fedd45 100644 --- a/lib/ldb/ldb_map/ldb_map.c +++ b/lib/ldb/ldb_map/ldb_map.c @@ -727,6 +727,7 @@ static void map_objectclass_generate_remote(struct ldb_module *module, const cha struct ldb_val val; bool found_extensibleObject = false; unsigned int i; + int ret; ldb = ldb_module_get_ctx(module); @@ -774,7 +775,11 @@ static void map_objectclass_generate_remote(struct ldb_module *module, const cha } /* Add new objectClass to remote message */ - ldb_msg_add(remote, el, 0); + ret = ldb_msg_add(remote, el, 0); + if (ret != LDB_SUCCESS) { + ldb_oom(ldb); + return; + } } /* Map an objectClass into the local partition. */ |