[asterisk-commits] mjordan: branch group/asterisk-13-sipit r424091 - /team/group/asterisk-13-sip...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Sep 29 03:25:40 CDT 2014
Author: mjordan
Date: Mon Sep 29 03:25:32 2014
New Revision: 424091
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424091
Log:
res/res_pjsip_pubsub: Fix crash on subscription shutdown when loading module
Modified:
team/group/asterisk-13-sipit/res/res_pjsip_pubsub.c
Modified: team/group/asterisk-13-sipit/res/res_pjsip_pubsub.c
URL: http://svnview.digium.com/svn/asterisk/team/group/asterisk-13-sipit/res/res_pjsip_pubsub.c?view=diff&rev=424091&r1=424090&r2=424091
==============================================================================
--- team/group/asterisk-13-sipit/res/res_pjsip_pubsub.c (original)
+++ team/group/asterisk-13-sipit/res/res_pjsip_pubsub.c Mon Sep 29 03:25:32 2014
@@ -1142,6 +1142,10 @@
{
int i;
+ if (!sub) {
+ return;
+ }
+
if (AST_VECTOR_SIZE(&sub->children) > 0) {
for (i = 0; i < AST_VECTOR_SIZE(&sub->children); ++i) {
shutdown_subscriptions(AST_VECTOR_GET(&sub->children, i));
More information about the asterisk-commits
mailing list