From: Volker Lendecke Date: Tue, 28 Jun 2016 12:41:19 +0000 (+0200) Subject: ldb: Fix CID 1362935: CHECKED_RETURN X-Git-Tag: tdb-1.3.10~648 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e20d2448e2d43f2bb36ea8a131c7677befed242;p=thirdparty%2Fsamba.git ldb: Fix CID 1362935: CHECKED_RETURN Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- 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. */