]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: always copy dynamic struct to avoid race condition 33/2433/13
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:24:21 +0000 (07:24 -0300)
commit8028fc758597f9d9233c97c4be0e229d8af7e3ab
treef0d849cf452f7c7f0b94ac3d8dd461f4f0769abf
parent69ced86c6c1847e5c4b683e35ccd407f3eff594a
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