]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: always copy dynamic struct to avoid race condition 46/2746/2
authorAndrew Nagy <andrew.nagy@the159.com>
Thu, 17 Mar 2016 19:29:38 +0000 (12:29 -0700)
committerJoshua Colp <jcolp@digium.com>
Tue, 3 May 2016 10:23:05 +0000 (07:23 -0300)
commit42ab8d8ef3c656de44881bfdce3ad81d819f165b
treea1b6c4eef46131a012abf40c83c44ed8bcaaf70c
parent09369132759f14541791dbf03406b4514bd34b2a
app_voicemail: always copy dynamic struct to avoid race condition

Voicemail email addresses can be corrupt or voicemail
emails can end up being sent to the wrong email address if asterisk is
reading voicemail.conf during a reload and processing an email at the
same time. This patch always copies the struct that would otherwise only
be copied once.

ASTERISK-24463 #close
Reported by: John Campbell
Tested by: Etienne Lessard
Tested by: Andrew Nagy
Change-Id: I3a0643813116da84e2617291903d0d489b7425fb
apps/app_voicemail.c