From: Sean Bright Date: Sat, 13 Apr 2019 18:36:56 +0000 (-0400) Subject: app_voicemail: Don't split mailbox options on comma X-Git-Tag: 16.4.0-rc1~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0a8334e4f5119cdf06a08d73aa3012609936f1b;p=thirdparty%2Fasterisk.git app_voicemail: Don't split mailbox options on comma Because the per-mailbox options are the last thing on a line, don't look for or stomp on any subsequent commas. ASTERISK-27935 #close Reported by: Sébastien Duthil Change-Id: I07b2eb4a33c303d0c7114d5b906f8c067c60a153 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 0e24731003..5c06be711a 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -12531,8 +12531,8 @@ static int append_mailbox(const char *context, const char *box, const char *data if (stringp && (s = strsep(&stringp, ","))) { ast_copy_string(vmu->pager, s, sizeof(vmu->pager)); } - if (stringp && (s = strsep(&stringp, ","))) { - apply_options(vmu, s); + if (stringp) { + apply_options(vmu, stringp); } switch (vmu->passwordlocation) {