From cd18856cc0cef32fda2c14783125c5773c2ba6e1 Mon Sep 17 00:00:00 2001 From: kcwu Date: Wed, 19 Sep 2007 16:10:22 +0000 Subject: fix access violation. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3557 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd') 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); -- cgit v1.2.3