Revision
17412
Author
anthm
Date
2010-04-27 12:49:53 -0500 (Tue, 27 Apr 2010)

Log Message

MODENDP-304

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (17411 => 17412)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	2010-04-26 23:17:39 UTC (rev 17411)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	2010-04-27 17:49:53 UTC (rev 17412)
@@ -1901,7 +1901,7 @@
 		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;
 		}