]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8759 #resolve [segfault on 1.7] #comment please update to master
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 20 Jan 2016 17:56:10 +0000 (11:56 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 20 Jan 2016 17:56:18 +0000 (11:56 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index 98067676befd3ed0b043a6dfe2d5ba5bbff328f4..e0951fb982b0571c60f2f7af8e97afbfc64a1e35 100644 (file)
@@ -1591,7 +1591,9 @@ static void our_sofia_event_callback(nua_event_t event,
                sofia_handle_sip_i_info(nua, profile, nh, session, sip, de, tags);
                break;
        case nua_i_update:
-               sofia_update_callee_id(session, profile, sip, SWITCH_TRUE);
+               if (session) {
+                       sofia_update_callee_id(session, profile, sip, SWITCH_TRUE);
+               }
                break;
        case nua_r_update:
                if (session && tech_pvt && locked) {