summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c
index b84ef7b3..036d6d99 100644
--- a/mbbsd/passwd.c
+++ b/mbbsd/passwd.c
@@ -76,7 +76,7 @@ passwd_update(int num, userec_t * buf)
if (num < 1 || num > MAX_USERS)
return -1;
buf->money = moneyof(num);
- if(usernum == num && ((pwdfd = currutmp->alerts) & ALERT_PWD))
+ if(usernum == num && currutmp && ((pwdfd = currutmp->alerts) & ALERT_PWD))
{
userec_t u;
passwd_query(num, &u);