s4:libnet_samsync_ldb.c - simplify a talloc steal call
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 7 Dec 2010 13:58:52 +0000 (14:58 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 7 Dec 2010 15:05:30 +0000 (16:05 +0100)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Dec  7 16:05:30 CET 2010 on sn-devel-104

source4/libnet/libnet_samsync_ldb.c

index 187abb70a19e44b30c2913421eb7230e25e835d8..07e085edb131c8b27912bb50feb45c12572208f8 100644 (file)
@@ -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);
                }
        }