]> 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:06 +0000 (15:30 -0500)
commite34651d62c11d2348652b7fda88534f1a206c683
tree98e415b282a8e96bc99a4b5132bd9adc3ffda877
parentba55298891f16567a6c78d91587b8c08a016a138
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