summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-08-28 23:57:34 +0000
committerJeremy Allison <jra@samba.org>2003-08-28 23:57:34 +0000
commitfcdebdae6fb69575bbe6e622b112d2e61f972898 (patch)
tree49237015e9ac117da0815b88db93e39fff01a307 /source3/smbd/process.c
parentafe845235a7fdeac5ea888db695da48f8df83349 (diff)
downloadsamba-fcdebdae6fb69575bbe6e622b112d2e61f972898.tar.gz
samba-fcdebdae6fb69575bbe6e622b112d2e61f972898.tar.bz2
samba-fcdebdae6fb69575bbe6e622b112d2e61f972898.zip
Fix bug found by tridge in 2.2.x. Ensure that %U substitution is
restored on next valid packet if a logon fails. This has relevence if people are using su.exe within logon scripts ! Jeremy. (This used to be commit d405a93a9d3f9a1d93bb3289b00683fba3160bbe)
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 373c2f16ae..457ba8cc63 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -719,7 +719,7 @@ static int switch_message(int type,char *inbuf,char *outbuf,int size,int bufsize
if(session_tag != UID_FIELD_INVALID)
vuser = get_valid_user_struct(session_tag);
if(vuser != NULL)
- current_user_info = vuser->user;
+ set_current_user_info(&vuser->user);
}
/* does this protocol need to be run as root? */