From 85ecbd367909c0b97388393bd9992bc21577e828 Mon Sep 17 00:00:00 2001 From: Jonathan Rose Date: Tue, 1 May 2012 18:23:08 +0000 Subject: [PATCH] Fix bad check in voicemail functions for ast_inboxcount2_func Check looks for ast_inboxcount_func instead of ast_inboxcount2_func on ast_inboxcount2_func calls. (closes issue ASTERISK-19718) Reported by: Corey Farrell Patches: ast_app_inboxcount2-null-refcheck.patch uploaded by Corey Farrell (license 5909) ........ Merged revisions 364769 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@364777 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/app.c b/main/app.c index 79ae1ac64b..e55cbe0030 100644 --- a/main/app.c +++ b/main/app.c @@ -343,7 +343,7 @@ int ast_app_inboxcount2(const char *mailbox, int *urgentmsgs, int *newmsgs, int if (urgentmsgs) { *urgentmsgs = 0; } - if (ast_inboxcount_func) { + if (ast_inboxcount2_func) { return ast_inboxcount2_func(mailbox, urgentmsgs, newmsgs, oldmsgs); } -- 2.47.2