]> 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:05 +0000 (15:30 -0500)
commit17e71b6abe705d3078e2b905680f9b334904c122
tree23af500a9cd85d9a1970a6cf4881c9b829dce23c
parent6b8423821ff890e5afd1f32b9d8124e2522ec3a4
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