mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user