summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 2b82fb3e..86c1124b 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1263,6 +1263,7 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct)
return FULLUPDATE;
ent = getbnum(xboard);
+ assert(0<=ent-1 && ent-1<MAX_BOARD);
if ( !((currmode & MODE_BOARD) || HasUserPerm(PERM_SYSOP)) &&
(cuser.firstlogin > (now - (time4_t)bcache[ent - 1].post_limit_regtime * 2592000) ||
cuser.numlogins < ((unsigned int)(bcache[ent - 1].post_limit_logins) * 10) ||