]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_realtime.c: Fix crash from NULL sorcery object type. 01/1701/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 23 Nov 2015 20:27:27 +0000 (14:27 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 23 Nov 2015 20:47:12 +0000 (14:47 -0600)
commitf5a60607077a7a2fca46fb2ef91f59cc75f7a132
tree8270862a27008a6afc5e054ac98e0ecbfb029704
parentde43ae38b48ff683fe62766c54956066a87d92e5
res_sorcery_realtime.c: Fix crash from NULL sorcery object type.

If the sorcery object type is not found a NULL is returned.
Unfortunately, sorcery_realtime_filter_objectset() will crash after
complaining about not finding the object type and saying to expect errors.

* Use ao2_cleanup() instead of ao2_ref() to prevent the crash.

ASTERISK-25165
Reported by Corey Farrell

Change-Id: Ic3b64453ea3058cb68d5c26d97d4fe7b8eea2e97
res/res_sorcery_realtime.c