mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 18:40:46 +00:00
Merge "res_pjsip_pubsub: Fix crash on destruction of empty subscription tree."
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user