diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-09-24 06:38:08 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-09-24 06:41:13 +0200 |
commit | 9ef39406d8072a1a102813fb4448af76e9020fcd (patch) | |
tree | 3362a651513f6a81b6286c3c49a8aa5537ea8c2b /source3 | |
parent | f23691cffd39e5df81b7b075e61ed1def6cce9f6 (diff) | |
download | samba-9ef39406d8072a1a102813fb4448af76e9020fcd.tar.gz samba-9ef39406d8072a1a102813fb4448af76e9020fcd.tar.bz2 samba-9ef39406d8072a1a102813fb4448af76e9020fcd.zip |
s3:rpc_server: we need to make a copy of my_name in serverinfo_to_SamInfo_base()
This is important for the case the server_info already contains a logon_server.
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 7711d6ced8..0c858c203e 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -1654,7 +1654,7 @@ static NTSTATUS serverinfo_to_SamInfo_base(TALLOC_CTX *mem_ctx, base->groups = groups; base->user_flags = NETLOGON_EXTRA_SIDS; base->key = user_session_key; - base->logon_server.string = my_name; + base->logon_server.string = talloc_strdup(mem_ctx, my_name); base->domain.string = talloc_strdup(mem_ctx, pdb_get_domain(sampw)); base->domain_sid = sid; base->LMSessKey = lm_session_key; |