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
This commit is contained in:
Michael Jerris committed 2008-04-22 21:26:50 +00:00
1 parent b0b5c755f1
commit 1b5a7779ec
2 files changed
+3 -3

No files matched your search

@@ -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());