projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AST-2013-004: Fix crash when handling ACK on dialog that has no channel
[asterisk/asterisk.git]
/
channels
/
chan_sip.c
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
58ee175
..
46d803c
100644
(file)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-28167,7
+28167,7
@@
static int handle_incoming(struct sip_pvt *p, struct sip_request *req, struct as
p->invitestate = INV_TERMINATED;
p->pendinginvite = 0;
acked = __sip_ack(p, seqno, 1 /* response */, 0);
p->invitestate = INV_TERMINATED;
p->pendinginvite = 0;
acked = __sip_ack(p, seqno, 1 /* response */, 0);
- if (find_sdp(req)) {
+ if (p->owner && find_sdp(req)) {
if (process_sdp(p, req, SDP_T38_NONE)) {
return -1;
}
if (process_sdp(p, req, SDP_T38_NONE)) {
return -1;
}