Merge "res_pjsip_pubsub: Fix crash on destruction of empty subscription tree."

This commit is contained in:
Matt Jordan 2015-10-25 10:12:10 -05:00 committed by Gerrit Code Review
commit cde1f9728e
1 changed files with 4 additions and 0 deletions

View File

@ -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;