From 4e20d2448e2d43f2bb36ea8a131c7677befed242 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 28 Jun 2016 14:41:19 +0200 Subject: [PATCH] ldb: Fix CID 1362935: CHECKED_RETURN Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- lib/ldb/ldb_map/ldb_map.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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. */ -- 2.47.3