]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: Fix crash on destruction of empty subscription tree. 08/1508/1
authorMark Michelson <mmichelson@digium.com>
Wed, 2 Sep 2015 14:14:19 +0000 (09:14 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 22 Oct 2015 20:18:01 +0000 (15:18 -0500)
commit7a47ab77c1148865f9f512c1703cdef1414ec48e
treeb90866ef525d8ac155e9b89843739b189407825e
parent8def38f6a2c487646467c19190c5adc1f6ee914d
res_pjsip_pubsub: Fix crash on destruction of empty subscription tree.

If an old persistent subscription is recreated but then immediately
destroyed because it is out of date, the subscription tree will have no
leaf subscriptions on it. This was resulting in a crash when attempting
to destroy the subscription tree.

A simple NULL check fixes this problem.

Change-Id: I85570b9e2bcc7260a3fe0ad85904b2a9bf36d2ac
res/res_pjsip_pubsub.c