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
1.0
Russell Bryant 21 years ago
parent d600998f7e
commit 57c86cec8e

@ -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;

Loading…
Cancel
Save