]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis: Fix "FRACK!, Failed assertion bad magic number" when unsubscribing
authorEvgenios_Greek <jone1984@hotmail.com>
Tue, 13 Apr 2021 07:57:21 +0000 (10:57 +0300)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 26 May 2021 16:10:13 +0000 (11:10 -0500)
commit59d15c4c2a35988c6f39cf8adbfede81763706ae
tree6b36791a93f2855210ce34ba4ee3a711bd33a242
parentb21d4d1b87abff7221c1b79af3426790c3b091da
stasis: Fix "FRACK!, Failed assertion bad magic number" when unsubscribing

When unsubscribing from an endpoint technology a FRACK
would occur due to incorrect reference counting. This fixes
that issue, along with some other issues.

Fixed a typo in get_subscription when calling ao2_find as it
needed to pass the endpoint ID and not the entire object.

Fixed scenario where a subscription would get returned when
it shouldn't have been when searching based on endpoint
technology.

A doulbe unreference has also been resolved by only explicitly
releasing the reference held by tech_subscriptions.

ASTERISK-28237 #close
Reported by: Lucas Tardioli Silveira

Change-Id: Ia91b15f8e5ea68f850c66889a6325d9575901729
res/stasis/messaging.c