summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-06-18 01:04:57 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-06-18 01:04:57 +0000
commit16c87e9198ab645df15209370288fefbd832f81e (patch)
tree275effadd3fb0b3e5f4691788894329271d67930 /source3/smbd
parent9942b09abbe410c7db52e7e0f7a3b3e68329ca05 (diff)
downloadsamba-16c87e9198ab645df15209370288fefbd832f81e.tar.gz
samba-16c87e9198ab645df15209370288fefbd832f81e.tar.bz2
samba-16c87e9198ab645df15209370288fefbd832f81e.zip
Fixed *really* stupid bug in register_vuid - only a problem
on multi-user NT systems. Jeremy (jallison@whistle.com) (This used to be commit 6ca5c8ca3294cde56e28558bcb02c144225903d8)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 7885fd1bbc..803418c97e 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -157,7 +157,7 @@ uint16 register_vuid(int uid,int gid, char *name,BOOL guest)
for(i = 0; i < num_validated_users; i++) {
vuser = &validated_users[i];
if( vuser->uid == uid )
- return i; /* User already validated */
+ return (uint16)(i + VUID_OFFSET); /* User already validated */
}
validated_users = (user_struct *)Realloc(validated_users,