1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ldb: Fix CID 1362935: CHECKED_RETURN

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2016-06-28 14:41:19 +02:00 committed by Ralph Boehme
parent 874a9d9c87
commit 4e20d2448e

View File

@ -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. */