]> git.ipfire.org Git - thirdparty/asterisk.git/commit
AST-2012-006: Fix crash in UPDATE handling when no channel owner exists
authorMatthew Jordan <mjordan@digium.com>
Mon, 23 Apr 2012 14:07:29 +0000 (14:07 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 23 Apr 2012 14:07:29 +0000 (14:07 +0000)
commit75cbeb35c34b04122b65b73e8242ef3cc31d2d00
treea492ed100b157884d3f0a41920708956713da9e4
parent4d3ff4780adb0f03c60429912f4f8c8cb20a7340
AST-2012-006: Fix crash in UPDATE handling when no channel owner exists

If Asterisk receives a SIP UPDATE request after a call has been terminated and
the channel has been destroyed but before the SIP dialog has been destroyed, a
condition exists where a connected line update would be attempted on a
non-existing channel.  This would cause Asterisk to crash.  The patch resolves
this by first ensuring that the SIP dialog has an owning channel before
attempting a connected line update.  If an UPDATE request is received and no
channel is associated with the dialog, a 481 response is sent.

(closes issue ASTERISK-19770)
Reported by: Thomas Arimont
Tested by: Matt Jordan
Patches:
  ASTERISK-19278-2012-04-16.diff uploaded by Matt Jordan (license 6283)
........

Merged revisions 363106 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@363107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c