Resolve crash in subscribing for MWI notifications
authorTerry Wilson <twilson@digium.com>
Tue, 22 May 2012 16:23:19 +0000 (16:23 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 22 May 2012 16:23:19 +0000 (16:23 +0000)
commit1ffb200c0e8642b7fb5c4f174e0064877f0c3d85
tree603c3d3f6d43349df0dc51b14f0b0fa8494ee2c5
parentc857131945b90dbb44754dfc974b0809635acaaa
Resolve crash in subscribing for MWI notifications

ASTOBJ_UNREF sets the variable to NULL after unreffing it, so the variable
should definitely not be used after that. To solve this in the two cases
that affect subscribing for MWI notifications, we instead save the ref
locally, and unref them in the error conditions.

(closes issue ASTERISK-19827)
Reported by: B. R
Review: https://reviewboard.asterisk.org/r/1940/
........

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

Merged revisions 367267 from http://svn.asterisk.org/svn/asterisk/branches/10

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