fix chan_mgcp seg fault (bug #2572)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@3917 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2004-10-05 21:39:00 +00:00
parent d600998f7e
commit 57c86cec8e

View File

@@ -2879,7 +2879,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;