]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add a missing break statement so that handling the above event does not
authorRussell Bryant <russell@russellbryant.com>
Thu, 8 Mar 2007 22:06:54 +0000 (22:06 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 8 Mar 2007 22:06:54 +0000 (22:06 +0000)
incorrectly destroy the channel. (issue #9242, andrew)

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

channels/chan_zap.c

index cee84952006fa249221f4df31e58c5749ea7659f..79ae82c6dab213fd5117f2bdfb697bd838642d5f 100644 (file)
@@ -6703,6 +6703,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",