]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_mwi: potential double unref, and potential unwanted double link
authorKevin Harwell <kharwell@digium.com>
Thu, 10 Oct 2019 20:30:06 +0000 (15:30 -0500)
committerKevin Harwell <kharwell@digium.com>
Thu, 10 Oct 2019 20:30:24 +0000 (15:30 -0500)
commit5dae803eea01a0574eb34bc92933fabc69504767
treeb8ab445cd5b4cdc99343dd89fd7060a5f69dacee
parent8aa4e1c3c99b58f072888ce8798623be227910c6
res_pjsip_mwi: potential double unref, and potential unwanted double link

When creating an unsolicited MWI aggregate subscription it was possible for
the subscription object to be double unref'ed. This patch removes the explicit
unref as it is not needed since the RAII_VAR will handle it at function end.

Less concerning there was also a bug that could potentially allow the aggregate
subscription object to be added to the unsolicited container twice. This patch
ensures it is added only once.

ASTERISK-28575

Change-Id: I9ccfdb5ea788bc0c3618db183aae235e53c12763
res/res_pjsip_mwi.c