]> 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:15 +0000 (15:30 -0500)
commit45c0d991857ec1ee61d12bc26a106cc8d5cc84a3
tree9081143718c77c355ff0de33bee8574154cc827e
parentb25e529ad86fc259c26ef4e4e87750a15775d47d
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