summaryrefslogtreecommitdiffstats
path: root/source/smbd/password.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-29 17:25:41 -0800
committerJeremy Allison <jra@samba.org>2007-11-29 17:25:41 -0800
commitcc257b71d13daa47e6f2315d0f07a60eb4aaeca6 (patch)
tree439c9f5e7cc1f4a30a1a32e1b27b0eac838693e3 /source/smbd/password.c
parent20c1ba23f2e2902ef7c2237c63addfef2ae75eac (diff)
downloadsamba-cc257b71d13daa47e6f2315d0f07a60eb4aaeca6.tar.gz
samba-cc257b71d13daa47e6f2315d0f07a60eb4aaeca6.tar.xz
samba-cc257b71d13daa47e6f2315d0f07a60eb4aaeca6.zip
Remove PSTRING_LEN from smbd/ nmbd/.
Remove pstring from libsmb/clidfs.c except for a nasty hack (that will be removed when pstrings are gone from client/). Jeremy.
Diffstat (limited to 'source/smbd/password.c')
-rw-r--r--source/smbd/password.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c
index 7bba458218d..75f05dea671 100644
--- a/source/smbd/password.c
+++ b/source/smbd/password.c
@@ -402,14 +402,14 @@ void add_session_user(const char *user)
len_session_userlist) ) {
char *newlist;
- if (len_session_userlist > 128 * PSTRING_LEN) {
+ if (len_session_userlist > 128 * 1024) {
DEBUG(3,("add_session_user: session userlist already "
"too large.\n"));
return;
}
newlist = (char *)SMB_REALLOC_KEEP_OLD_ON_ERROR(
session_userlist,
- len_session_userlist + PSTRING_LEN );
+ len_session_userlist + 1024 );
if( newlist == NULL ) {
DEBUG(1,("Unable to resize session_userlist\n"));
return;
@@ -418,7 +418,7 @@ void add_session_user(const char *user)
*newlist = '\0';
}
session_userlist = newlist;
- len_session_userlist += PSTRING_LEN;
+ len_session_userlist += 1024;
}
safe_strcat(session_userlist," ",len_session_userlist-1);