]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail_imap: Fix message count when IMAP server is unavailable
authorOlaf Titz <olaf@bigred.inka.de>
Thu, 15 Jun 2023 15:36:26 +0000 (17:36 +0200)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Mon, 26 Jun 2023 13:03:23 +0000 (13:03 +0000)
commit128a9969a17038091ab39b354ef18ef1daa5c8e2
tree7445f62ec8857024de13936a1c7b6d610ea3cd00
parent153095dd91b5736003674d2b2dec619dae0dba6a
app_voicemail_imap: Fix message count when IMAP server is unavailable

Some callers of __messagecount did not correctly handle error return,
instead returning a -1 message count.
This caused a notification with "Messages-Waiting: yes" and
"Voice-Message: -1/0 (0/0)" if the IMAP server was unavailable.

Fixes: #64
apps/app_voicemail.c