This corrects the crash condition present in #7575, but I'm not really sure if it's the "right" fix. Please review and make any adjustments you see necessary.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
ca9ba719b6
commit
f2611e36c3
|
@ -11239,11 +11239,10 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
|
||||||
build_route(p, req, 1);
|
build_route(p, req, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->owner && (p->owner->_state == AST_STATE_UP)) { /* if this is a re-invite */
|
struct ast_channel *bridgepeer = NULL;
|
||||||
struct ast_channel *bridgepeer = NULL;
|
if (p->owner && (p->owner->_state == AST_STATE_UP) && (bridgepeer = ast_bridged_channel(p->owner))) { /* if this is a re-invite */
|
||||||
struct sip_pvt *bridgepvt = NULL;
|
struct sip_pvt *bridgepvt = NULL;
|
||||||
|
|
||||||
bridgepeer = ast_bridged_channel(p->owner);
|
|
||||||
if (!bridgepeer->tech) {
|
if (!bridgepeer->tech) {
|
||||||
ast_log(LOG_WARNING, "Ooooh.. no tech! That's REALLY bad\n");
|
ast_log(LOG_WARNING, "Ooooh.. no tech! That's REALLY bad\n");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue