]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODENDP-304
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 27 Apr 2010 17:49:53 +0000 (12:49 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 27 Apr 2010 17:49:53 +0000 (12:49 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 0a8a333812ee430a24a805c33174107b1cbb997c..2a9296bb6bd7ebfc57fff9eb4e827e5bbc6638f7 100644 (file)
@@ -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;
                }