Skip to content
Snippets Groups Projects
Commit 6efa8d44 authored by Matt Jordan's avatar Matt Jordan Committed by Gerrit Code Review
Browse files

Merge "res_pjsip_pubsub: Fix crash on destruction of empty subscription tree." into certified/13.1

parents 2aea9b65 7a47ab77
Branches
Tags
No related merge requests found
...@@ -1075,6 +1075,10 @@ static void destroy_subscriptions(struct ast_sip_subscription *root) ...@@ -1075,6 +1075,10 @@ static void destroy_subscriptions(struct ast_sip_subscription *root)
{ {
int i; int i;
if (!root) {
return;
}
for (i = 0; i < AST_VECTOR_SIZE(&root->children); ++i) { for (i = 0; i < AST_VECTOR_SIZE(&root->children); ++i) {
struct ast_sip_subscription *child; struct ast_sip_subscription *child;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment