Skip to content
Snippets Groups Projects
Commit c841c34a authored by Richard Mudgett's avatar Richard Mudgett
Browse files

chan_dahdi: Fix segfault reloading chan_dahdi when round robin is used.

* Clear round_robin[] in dahdi_restart().

(closes issue ASTERISK-21847)
Reported by: Ivo Andonov
Patches:
      jira_asterisk_21847_v1.8.patch (license #5621) patch uploaded by rmudgett
........

Merged revisions 393627 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 393628 from http://svn.asterisk.org/svn/asterisk/branches/11


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 0227e00e
Branches
Tags
No related merge requests found
...@@ -15617,6 +15617,7 @@ static int dahdi_restart(void) ...@@ -15617,6 +15617,7 @@ static int dahdi_restart(void)
dahdi_softhangup_all(); dahdi_softhangup_all();
ast_verb(4, "Final softhangup of all DAHDI channels complete.\n"); ast_verb(4, "Final softhangup of all DAHDI channels complete.\n");
destroy_all_channels(); destroy_all_channels();
memset(round_robin, 0, sizeof(round_robin));
ast_debug(1, "Channels destroyed. Now re-reading config. %d active channels remaining.\n", ast_active_channels()); ast_debug(1, "Channels destroyed. Now re-reading config. %d active channels remaining.\n", ast_active_channels());
   
ast_mutex_unlock(&monlock); ast_mutex_unlock(&monlock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment