From 055a3e0fae1c59567057239d5d6e3f20cf962c33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Tue, 7 Dec 2010 14:58:52 +0100 Subject: [PATCH] s4:libnet_samsync_ldb.c - simplify a talloc steal call MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Tue Dec 7 16:05:30 CET 2010 on sn-devel-104 --- source4/libnet/libnet_samsync_ldb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source4/libnet/libnet_samsync_ldb.c b/source4/libnet/libnet_samsync_ldb.c index 187abb70a19e..07e085edb131 100644 --- a/source4/libnet/libnet_samsync_ldb.c +++ b/source4/libnet/libnet_samsync_ldb.c @@ -311,8 +311,7 @@ static NTSTATUS samsync_ldb_handle_user(TALLOC_CTX *mem_ctx, /* Try to put things in the same location as the remote server */ } else if (add) { - msg->dn = remote_msgs[0]->dn; - talloc_steal(msg, remote_msgs[0]->dn); + msg->dn = talloc_steal(msg, remote_msgs[0]->dn); } } -- 2.34.1