aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-23 14:46:53 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-23 14:46:53 +0000
commit5ecf41935a3eeb90b83044844aa4de7af2f2c9cc (patch)
tree56eb238368ddf97f5aaf309372dce21930ca26d1
parent0349eaca41d597699972481f0414b5607c2bba2a (diff)
Fix potential crash if p->owner is NULL.
Problem was observed when a call-forwarding loop was accidentally configured. ABE-1906 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@208229 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b056a3441..b793742b1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -18869,11 +18869,11 @@ static void handle_response(struct sip_pvt *p, int resp, const char *rest, struc
case 301: /* Moved permanently */
case 302: /* Moved temporarily */
case 305: /* Use Proxy */
- {
+ if (p->owner) {
struct ast_party_redirecting redirecting = {{0,},};
change_redirecting_information(p, req, &redirecting, TRUE);
ast_channel_set_redirecting(p->owner, &redirecting);
- }
+ }
/* Fall through */
case 486: /* Busy here */
case 600: /* Busy everywhere */