]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Resolve crash in subscribing for MWI notifications
authorTerry Wilson <twilson@digium.com>
Tue, 22 May 2012 16:14:16 +0000 (16:14 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 22 May 2012 16:14:16 +0000 (16:14 +0000)
commitc19139538112dcd107a3f1eab98006e366dfb30b
treebe522bc3bb469bc2be7e1bc30a11def1e40ba461
parent3ddfb50fe4dc4c5e894666df5652647ac802bc7e
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/

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