From: Jonathan Rose Date: Tue, 1 May 2012 18:16:27 +0000 (+0000) Subject: Fix bad check in voicemail functions for ast_inboxcount2_func X-Git-Tag: 1.8.13.0-rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b45764bb7e38e8f263b6af2e697a25101693ae3;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@364769 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/app.c b/main/app.c index 77f5b35528..482c27f787 100644 --- a/main/app.c +++ b/main/app.c @@ -342,7 +342,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); }