]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_server: we need to make a copy of my_name in serverinfo_to_SamInfo3()
authorGünther Deschner <gd@samba.org>
Wed, 7 Oct 2009 12:34:05 +0000 (14:34 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 8 Oct 2009 07:34:49 +0000 (09:34 +0200)
This is important for the case the server_info already contains a logon_server.

metze

source/rpc_client/init_netlogon.c

index e4c39e739ee4150788aebbca581a9595f6d056f1..3972d9b1edc8b503489c68fb6c31d33f99d203f6 100644 (file)
@@ -296,7 +296,7 @@ NTSTATUS serverinfo_to_SamInfo3(struct auth_serversupplied_info *server_info,
                           groups,
                           NETLOGON_EXTRA_SIDS,
                           user_session_key,
-                          my_name,
+                          talloc_strdup(sam3, my_name),
                           talloc_strdup(sam3, pdb_get_domain(sampw)),
                           sid,
                           lm_session_key,