diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-07 14:58:52 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-12-07 16:05:30 +0100 |
commit | 055a3e0fae1c59567057239d5d6e3f20cf962c33 (patch) | |
tree | 46682efce1df90bd1c6e7dc41b0fa2d7c4d3de08 /source4/libnet | |
parent | a07d20821ac9d09831bac10eca91ae8cb7b5106f (diff) | |
download | samba-055a3e0fae1c59567057239d5d6e3f20cf962c33.tar.gz samba-055a3e0fae1c59567057239d5d6e3f20cf962c33.tar.bz2 samba-055a3e0fae1c59567057239d5d6e3f20cf962c33.zip |
s4:libnet_samsync_ldb.c - simplify a talloc steal call
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Dec 7 16:05:30 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_samsync_ldb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/libnet/libnet_samsync_ldb.c b/source4/libnet/libnet_samsync_ldb.c index 187abb70a1..07e085edb1 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); } } |