Skip to content
Snippets Groups Projects
  • Andrew Nagy's avatar
    080c6216
    app_voicemail: always copy dynamic struct to avoid race condition · 080c6216
    Andrew Nagy authored
    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
    080c6216
    History
    app_voicemail: always copy dynamic struct to avoid race condition
    Andrew Nagy authored
    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
app_voicemail.c 517.11 KiB