]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb: Fix CID 1362935: CHECKED_RETURN
authorVolker Lendecke <vl@samba.org>
Tue, 28 Jun 2016 12:41:19 +0000 (14:41 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 28 Jun 2016 16:48:08 +0000 (18:48 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/ldb/ldb_map/ldb_map.c

index 66b00592921e994164d33462a3d995d92f94eda6..f2a86fedd45e476c5d93afab4d92bd51b88cc4ad 100644 (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. */