提交 1b5a7779 authored 作者: Michael Jerris's avatar Michael Jerris

interim fix for SFSIP-55, don't segfault on subscribe with Expires: 0

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8174 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b0b5c755
Mon Apr 21 18:30:34 EDT 2008
Tue Apr 22 16:13:56 CDT 2008
......@@ -351,8 +351,8 @@ int nua_subscribe_server_report(nua_server_request_t *sr, tagi_t const *tags)
/* nu_requested is set by SUBSCRIBE and cleared when NOTIFY is sent */
if (nu && nu->nu_requested && substate != nua_substate_embryonic) {
#if SU_HAVE_EXPERIMENTAL
sip_t const *sip = sr->sr_request.sip;
#if SU_HAVE_EXPERIMENTAL
sip_suppress_notify_if_match_t *snim = sip_suppress_notify_if_match(sip);
sip_suppress_body_if_match_t *sbim = sip_suppress_body_if_match(sip);
......@@ -364,7 +364,7 @@ int nua_subscribe_server_report(nua_server_request_t *sr, tagi_t const *tags)
notify = 1, nu->nu_no_body = 1;
else
#endif
notify = 1;
if (sip->sip_expires && sip->sip_expires->ex_delta) notify = 1;
}
retval = nua_base_server_treport(sr, NUTAG_SUBSTATE(substate), TAG_END());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论