Fix potential crash if p->owner is NULL.
Problem was observed when a call-forwarding loop was accidentally configured. ABE-1906 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
b7928de6ac
commit
3843480b8f
1 changed files with 2 additions and 2 deletions
|
@ -18869,7 +18869,7 @@ static void handle_response(struct sip_pvt *p, int resp, const char *rest, struc
|
||||||
case 301: /* Moved permanently */
|
case 301: /* Moved permanently */
|
||||||
case 302: /* Moved temporarily */
|
case 302: /* Moved temporarily */
|
||||||
case 305: /* Use Proxy */
|
case 305: /* Use Proxy */
|
||||||
{
|
if (p->owner) {
|
||||||
struct ast_party_redirecting redirecting = {{0,},};
|
struct ast_party_redirecting redirecting = {{0,},};
|
||||||
change_redirecting_information(p, req, &redirecting, TRUE);
|
change_redirecting_information(p, req, &redirecting, TRUE);
|
||||||
ast_channel_set_redirecting(p->owner, &redirecting);
|
ast_channel_set_redirecting(p->owner, &redirecting);
|
||||||
|
|
Loading…
Reference in a new issue