summaryrefslogtreecommitdiff
path: root/lib/ldb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2016-06-28 14:41:19 +0200
committerRalph Boehme <slow@samba.org>2016-06-28 18:48:08 +0200
commit4e20d2448e2d43f2bb36ea8a131c7677befed242 (patch)
treed4e2e60d708ea3f9e9f825068a3c119c5ddfb946 /lib/ldb
parent874a9d9c87c69b5dd62494c6372aa196daadc325 (diff)
downloadsamba-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.c7
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. */