aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-24 19:21:15 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-24 19:21:15 +0000
commit2dccbf6cb599561362521735c15bd3c768e30c82 (patch)
treeab5091af5d96d34a3d52f6a27afaba5333e8e720
parent7411e901a5594766ea70160e8fc613bfcfc50dc5 (diff)
Issue 6114: Don't hangup on BYE/ALSO with no channel.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8562 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d6fb905bd..701d695de 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10619,7 +10619,8 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req, int de
}
} else {
ast_log(LOG_WARNING, "Invalid transfer information from '%s'\n", ast_inet_ntoa(iabuf, sizeof(iabuf), p->recv.sin_addr));
- ast_queue_hangup(p->owner);
+ if (p->owner)
+ ast_queue_hangup(p->owner);
}
} else if (p->owner)
ast_queue_hangup(p->owner);