From: Volker Lendecke Date: Tue, 21 Aug 2018 19:41:05 +0000 (+0200) Subject: dsdb: Fix CID 1438461 Error handling issues (CHECKED_RETURN) X-Git-Tag: tdb-1.3.17~2098 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09acfb762a734bb71f2623da55230006bfda35e0;p=thirdparty%2Fsamba.git dsdb: Fix CID 1438461 Error handling issues (CHECKED_RETURN) Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index c4a41a28d04..584fd2185a2 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -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; }