]> 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:40 +0000 (15:30 -0500)
commit2f6504ce5ea5fda21d23623e0d4f390337686baa
tree8806e7e60067df126308b5b4a5d6a3b0b5d88edb
parent43da508b25bcafb348189fb1720ab6356406ef81
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