From: Richard Mudgett Date: Wed, 3 Jul 2013 23:30:20 +0000 (+0000) Subject: chan_dahdi: Fix segfault reloading chan_dahdi when round robin is used. X-Git-Tag: 11.6.0-rc1~3^2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c03b11466dd34e9d753bdc29baf319048b273086;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@393628 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index e52a3daaa4..7444b9d746 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -15452,6 +15452,7 @@ static int dahdi_restart(void) dahdi_softhangup_all(); ast_verb(4, "Final softhangup of all DAHDI channels complete.\n"); 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_mutex_unlock(&monlock);