diff options
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r-- | mbbsd/passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index cd679f03..0f46f65f 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -126,11 +126,11 @@ userec_t userecbuf; int initcuser(char *userid) { // Ptt: setup cuser and usernum here + cuser = &userecbuf; if(userid[0]=='\0' || !(usernum = searchuser(userid)) || usernum > MAX_USERS) return -1; passwd_query(usernum, &userecbuf); - cuser = &userecbuf; return usernum; } |