diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-12-01 23:54:38 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-12-01 22:10:42 +0100 |
commit | f5c5fd9e828b3e0bf6c2cdcd448c66fa1c8d41c1 (patch) | |
tree | 8649e073b9abd95d789943891f2bfa187cd4c237 /source4/ldap_server | |
parent | 71e2d9e7e825e57e8240d61ed1091edca0089ed5 (diff) | |
download | samba-f5c5fd9e828b3e0bf6c2cdcd448c66fa1c8d41c1.tar.gz samba-f5c5fd9e828b3e0bf6c2cdcd448c66fa1c8d41c1.tar.bz2 samba-f5c5fd9e828b3e0bf6c2cdcd448c66fa1c8d41c1.zip |
s4-ldap: removed an incorrect talloc_move()
the parent of this session_info is either the stream_connection, or
its a system_session(). In either case reparenting it on the
ldapsrv_connection doesn't achieve anything that I can see.
The move was causing a steal on reference error because the
session_info often has multiple references.
Thanks to Metze for spotting this.
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Dec 1 22:10:42 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index 67fe18330f..db775c9a12 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -330,7 +330,7 @@ static void ldapsrv_accept(struct stream_connection *c, } conn->server_credentials = server_credentials; - conn->session_info = talloc_move(conn, &session_info); + conn->session_info = session_info; if (!NT_STATUS_IS_OK(ldapsrv_backend_Init(conn))) { ldapsrv_terminate_connection(conn, "backend Init failed"); |