summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-27 18:23:50 +0100
committerGünther Deschner <gd@samba.org>2008-10-28 00:13:50 +0100
commitf5269ff1822564aa639395384629ae4560c5f79f (patch)
tree6c23f3c4bc885774c655b89da8f9f690c2fcf429
parent0e389dc56cca8e168d4b2e2890150f3ca6a18c50 (diff)
downloadsamba-f5269ff1822564aa639395384629ae4560c5f79f.tar.gz
samba-f5269ff1822564aa639395384629ae4560c5f79f.tar.bz2
samba-f5269ff1822564aa639395384629ae4560c5f79f.zip
s3-netlogon: kill an fstring in rpc_server.
Guenther
-rw-r--r--source3/rpc_server/srv_netlog_nt.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index 2dc6cd6393..75fc99401e 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -797,22 +797,19 @@ NTSTATUS _netr_LogonSamLogon(pipes_struct *p,
}
if (process_creds) {
- fstring remote_machine;
/* Get the remote machine name for the creds store. */
/* Note this is the remote machine this request is coming from (member server),
not neccessarily the workstation name the user is logging onto.
*/
- fstrcpy(remote_machine, r->in.computer_name);
-
if (!p->dc) {
/* Restore the saved state of the netlogon creds. */
bool ret;
become_root();
ret = secrets_restore_schannel_session_info(
- p, remote_machine, &p->dc);
+ p, r->in.computer_name, &p->dc);
unbecome_root();
if (!ret) {
return NT_STATUS_INVALID_HANDLE;
@@ -827,13 +824,13 @@ NTSTATUS _netr_LogonSamLogon(pipes_struct *p,
if (!netlogon_creds_server_step(p->dc, r->in.credential, r->out.return_authenticator)) {
DEBUG(2,("_netr_LogonSamLogon: creds_server_step failed. Rejecting auth "
"request from client %s machine account %s\n",
- remote_machine, p->dc->mach_acct ));
+ r->in.computer_name, p->dc->mach_acct ));
return NT_STATUS_INVALID_PARAMETER;
}
/* We must store the creds state after an update. */
become_root();
- secrets_store_schannel_session_info(p, remote_machine, p->dc);
+ secrets_store_schannel_session_info(p, r->in.computer_name, p->dc);
unbecome_root();
}