s3:rpc_server: we need to make a copy of my_name in serverinfo_to_SamInfo_base()
authorStefan Metzmacher <metze@samba.org>
Thu, 24 Sep 2009 04:38:08 +0000 (06:38 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 8 Oct 2009 07:39:37 +0000 (09:39 +0200)
This is important for the case the server_info already contains a logon_server.

metze
(This is similar to commit 9ef39406d8072a1a102813fb4448af76e9020fcd)

source3/rpc_client/init_netlogon.c

index 793b9c7de50f1e773036f6eeb096d9ee2440662d..e7c2d066204d1b0b427708a456fe1a8d654b7c2d 100644 (file)
@@ -310,7 +310,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,