Fix MGCP seg (bug #2572)
authorMark Spencer <markster@digium.com>
Tue, 5 Oct 2004 21:00:54 +0000 (21:00 +0000)
committerMark Spencer <markster@digium.com>
Tue, 5 Oct 2004 21:00:54 +0000 (21:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3916 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c

index e1e1e76..21cfd16 100755 (executable)
@@ -2883,7 +2883,7 @@ static int handle_request(struct mgcp_subchannel *sub, struct mgcp_request *req,
                                                tmp_sub = tmp_ep->sub;
                                                while (tmp_sub) {
                                                        if (tmp_sub->owner)
-                                                               ast_softhangup(sub->owner, AST_SOFTHANGUP_DEV);
+                                                               ast_softhangup(tmp_sub->owner, AST_SOFTHANGUP_DEV);
                                                        tmp_sub = tmp_sub->next;
                                                        if (tmp_sub == first_sub)
                                                                break;