]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: always copy dynamic struct to avoid race condition 45/2745/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:25:28 +0000 (05:25 -0500)
commit080c6216b61c108ec3b836a098fdd39bf946ce54
treee570f27578665e95c4b685cc9e34d715a6f54a45
parentadf32d11918fea837d1e12c526876b78ba4f6cb0
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