git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f23691c
)
s3:rpc_server: we need to make a copy of my_name in serverinfo_to_SamInfo_base()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 24 Sep 2009 04:38:08 +0000
(06:38 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 24 Sep 2009 04:41:13 +0000
(06:41 +0200)
This is important for the case the server_info already contains a logon_server.
metze
source3/rpc_server/srv_pipe_hnd.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_pipe_hnd.c
b/source3/rpc_server/srv_pipe_hnd.c
index 7711d6ced8ff20495b09cd1915d93b9e4bf0ab48..0c858c203e168cd49099bdfe48f94a263ecaeda4 100644
(file)
--- 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;