dsdb: Fix CID 1438461 Error handling issues (CHECKED_RETURN)
authorVolker Lendecke <vl@samba.org>
Tue, 21 Aug 2018 19:41:05 +0000 (21:41 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 21 Aug 2018 22:58:41 +0000 (00:58 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index c4a41a28d046f0565d6c871f0312516f7387f829..584fd2185a2c0ea148f8fb6d5c492532432e51ca 100644 (file)
@@ -4685,6 +4685,7 @@ static int replmd_make_prefix_child_dn(TALLOC_CTX *tmp_ctx,
 {
        struct ldb_val deleted_child_rdn_val;
        struct GUID_txt_buf guid_str;
+       int ret;
        bool retb;
 
        GUID_buf_string(&guid, &guid_str);
@@ -4751,10 +4752,13 @@ static int replmd_make_prefix_child_dn(TALLOC_CTX *tmp_ctx,
               sizeof(guid_str.buf));
 
        /* Now set the value into the RDN, without parsing it */
-       ldb_dn_set_component(dn, 0, rdn_name,
-                            deleted_child_rdn_val);
+       ret = ldb_dn_set_component(
+               dn,
+               0,
+               rdn_name,
+               deleted_child_rdn_val);
 
-       return LDB_SUCCESS;
+       return ret;
 }