From: Anthony Minessale Date: Tue, 27 Apr 2010 17:49:53 +0000 (-0500) Subject: MODENDP-304 X-Git-Tag: git2svn-syncpoint-master~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=825bf99daa3c987e181a561341627d7626fcb4bc;p=thirdparty%2Ffreeswitch.git MODENDP-304 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 0a8a333812..2a9296bb6b 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1901,7 +1901,7 @@ void sofia_presence_handle_sip_i_subscribe(int status, full_from = sip_header_as_string(profile->home, (void *) sip->sip_from); full_via = sip_header_as_string(profile->home, (void *) sip->sip_via); - if (sip->sip_expires->ex_delta > 31536000) { + if (sip && sip->sip_expires && sip->sip_expires->ex_delta > 31536000) { sip->sip_expires->ex_delta = 31536000; }