mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
replmd: Fix talloc inconsistency in replmd_set_la_val()
All the other talloc_asprintf()s in this function use the mem_ctx, but for some reason the vstring was using the dsdb_dn->dn. This probably isn't a big deal, but might have unintentional side-effects. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13055 Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a607a3e83e
commit
f183dcfad5
@ -2373,7 +2373,7 @@ static int replmd_set_la_val(TALLOC_CTX *mem_ctx, struct ldb_val *v, struct dsdb
|
||||
ret = ldb_dn_set_extended_component(dn, "RMD_LOCAL_USN", &local_usnv);
|
||||
if (ret != LDB_SUCCESS) return ret;
|
||||
|
||||
vstring = talloc_asprintf(dn, "%lu", (unsigned long)version);
|
||||
vstring = talloc_asprintf(mem_ctx, "%lu", (unsigned long)version);
|
||||
vers = data_blob_string_const(vstring);
|
||||
ret = ldb_dn_set_extended_component(dn, "RMD_VERSION", &vers);
|
||||
if (ret != LDB_SUCCESS) return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user