Merged revisions 58510 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Thu, 8 Mar 2007 22:08:28 +0000 (22:08 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 8 Mar 2007 22:08:28 +0000 (22:08 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r58510 | russell | 2007-03-08 16:06:54 -0600 (Thu, 08 Mar 2007) | 3 lines

Add a missing break statement so that handling the above event does not
incorrectly destroy the channel. (issue #9242, andrew)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58511 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 0715626..9ff2e52 100644 (file)
@@ -7074,6 +7074,7 @@ static int handle_init_event(struct zt_pvt *i, int event)
                                "polarity reversal on non-FXO (SIG_FXS) "
                                "interface %d\n", i->channel);
                }
+               break;
        case ZT_EVENT_REMOVED: /* destroy channel */
                ast_log(LOG_NOTICE, 
                                "Got ZT_EVENT_REMOVED. Destroying channel %d\n",