summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-01-02 20:43:27 +0000
committerJeremy Allison <jra@samba.org>2003-01-02 20:43:27 +0000
commit1afa539299c0902e869a9cb160783a7af6032f1e (patch)
tree7561d1cd275bdad800907fecce25b007ca7aa844
parent57120dce63fdd5f90400e34b3e6617e885427499 (diff)
downloadsamba-1afa539299c0902e869a9cb160783a7af6032f1e.tar.gz
samba-1afa539299c0902e869a9cb160783a7af6032f1e.tar.bz2
samba-1afa539299c0902e869a9cb160783a7af6032f1e.zip
pstring/fstring missmatches found by Andrew Bartlett.
Jeremy. (This used to be commit 585a73b810389129f380cfab1b1b52700b350055)
-rw-r--r--source3/smbd/sesssetup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 9d708bd5a0..f8e8e017e0 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -609,8 +609,8 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
DATA_BLOB lm_resp;
DATA_BLOB nt_resp;
DATA_BLOB plaintext_password;
- pstring user;
- pstring sub_user; /* Sainitised username for substituion */
+ fstring user;
+ fstring sub_user; /* Sainitised username for substituion */
fstring domain;
fstring native_os;
fstring native_lanman;
@@ -756,15 +756,15 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
DEBUG(0,("reply_sesssetup_and_X: Rejecting attempt at 'normal' session setup after negotiating spnego.\n"));
return ERROR_NT(NT_STATUS_UNSUCCESSFUL);
}
- pstrcpy(sub_user, user);
+ fstrcpy(sub_user, user);
/* setup the string used by %U */
sub_set_smb_name(user);
} else {
- pstrcpy(sub_user, lp_guestaccount());
+ fstrcpy(sub_user, lp_guestaccount());
}
- pstrcpy(current_user_info.smb_name,sub_user);
+ fstrcpy(current_user_info.smb_name,sub_user);
reload_services(True);