Merge "res_pjsip_pubsub: Fix crash on destruction of empty subscription tree."
This commit is contained in:
commit
cde1f9728e
|
@ -1079,6 +1079,10 @@ static void destroy_subscriptions(struct ast_sip_subscription *root)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (!root) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < AST_VECTOR_SIZE(&root->children); ++i) {
|
||||
struct ast_sip_subscription *child;
|
||||
|
||||
|
|
Loading…
Reference in New Issue