[asterisk-commits] file: branch group/pimp_my_sip r386343 - /team/group/pimp_my_sip/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Apr 23 10:24:38 CDT 2013
Author: file
Date: Tue Apr 23 10:24:34 2013
New Revision: 386343
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=386343
Log:
Don't assume a session will be present when has_supplement is called, it may have gone away.
Modified:
team/group/pimp_my_sip/res/res_sip_session.c
Modified: team/group/pimp_my_sip/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_session.c?view=diff&rev=386343&r1=386342&r2=386343
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_session.c (original)
+++ team/group/pimp_my_sip/res/res_sip_session.c Tue Apr 23 10:24:34 2013
@@ -1216,6 +1216,10 @@
{
struct ast_sip_session_supplement *supplement;
struct pjsip_method *method = &rdata->msg_info.msg->line.req.method;
+
+ if (!session) {
+ return PJ_FALSE;
+ }
AST_LIST_TRAVERSE(&session->supplements, supplement, next) {
if (!supplement->method || !pj_strcmp2(&method->name, supplement->method)) {
More information about the asterisk-commits
mailing list