[asterisk-bugs] [JIRA] (ASTERISK-29211) res_musiconhold: Segfault on realtime music on hold without entries

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Wed Jan 6 18:25:17 CST 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua C. Colp closed ASTERISK-29211.
-------------------------------------

    Resolution: Fixed

> res_musiconhold: Segfault on realtime music on hold without entries
> -------------------------------------------------------------------
>
>                 Key: ASTERISK-29211
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29211
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_musiconhold
>    Affects Versions: 13.38.0, 14.7.8, 15.7.4, 16.15.0, 17.9.0, 18.1.0
>            Reporter: Nathan Bruning
>            Assignee: Nathan Bruning
>            Severity: Minor
>
> When configuring asterisk to use real-time music on hold, it will segfault if there are no entries in the DB.
> This is easy to spot in the sources: {{load_realtime_musiconhold}} doesn't check whether {{ast_load_realtime_multientry}} returns NULL.
> Simple fix would be to add a null check around the following code...



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list