diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-12-18 12:44:43 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-01-01 19:28:07 +0100 |
commit | 025c6d62f3c1b0f760aaacb7b3960135319031da (patch) | |
tree | 141b0a0c6e944c369e855c4330d592dad5c5fc2d /source4/rpc_server/drsuapi | |
parent | 30be17bc5d6b3cf2ee0aef6663af78b153b2ab9a (diff) | |
download | samba-025c6d62f3c1b0f760aaacb7b3960135319031da.tar.gz samba-025c6d62f3c1b0f760aaacb7b3960135319031da.tar.bz2 samba-025c6d62f3c1b0f760aaacb7b3960135319031da.zip |
s4:drsuapi: avoid a ldb_dn_copy() and use talloc_move() instead
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r-- | source4/rpc_server/drsuapi/getncchanges.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index b7b488c2e3..7ed47f13ca 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -1889,11 +1889,11 @@ allowed: *currentObject = obj; currentObject = &obj->next_object; - talloc_free(getnc_state->last_dn); - getnc_state->last_dn = ldb_dn_copy(getnc_state, msg->dn); - DEBUG(8,(__location__ ": replicating object %s\n", ldb_dn_get_linearized(msg->dn))); + talloc_free(getnc_state->last_dn); + getnc_state->last_dn = talloc_move(getnc_state, &msg->dn); + talloc_free(msg_res); talloc_free(msg_dn); } |