[asterisk-commits] mjordan: branch group/asterisk-13-sipit r424099 - /team/group/asterisk-13-sip...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Sep 29 15:50:51 CDT 2014
Author: mjordan
Date: Mon Sep 29 15:50:46 2014
New Revision: 424099
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424099
Log:
res/res_pjsip_pubsub: Prevent more crashes when restoring subscriptions
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=424099&r1=424098&r2=424099
==============================================================================
--- team/group/asterisk-13-sipit/res/res_pjsip_pubsub.c (original)
+++ team/group/asterisk-13-sipit/res/res_pjsip_pubsub.c Mon Sep 29 15:50:46 2014
@@ -1038,8 +1038,10 @@
AST_RWLIST_TRAVERSE_SAFE_BEGIN(&subscriptions, i, next) {
if (i == obj) {
AST_RWLIST_REMOVE_CURRENT(next);
- ast_debug(1, "Removing subscription to resource %s from list of subscriptions\n",
- ast_sip_subscription_get_resource_name(i->root));
+ if (i->root) {
+ ast_debug(1, "Removing subscription to resource %s from list of subscriptions\n",
+ ast_sip_subscription_get_resource_name(i->root));
+ }
break;
}
}
More information about the asterisk-commits
mailing list