diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 8e2df022cdcd2e7e76f196b724cf23054c5c4cb1..fa334e3505db9ba06fbf428a9debd3ccc72664f3 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2446,7 +2446,6 @@ static int __messagecount(const char *context, const char *mailbox, const char *
 		free_user(vmu);
 		return -1;
 	}
-	ast_assert(msgnum < vms->msg_array_max);
 
 	/* check if someone is accessing this box right now... */
 	vms_p = get_vm_state_by_imapuser(vmu->imapuser, 1);