]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweaks
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 18 Aug 2006 19:29:42 +0000 (19:29 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 18 Aug 2006 19:29:42 +0000 (19:29 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2328 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index d7e57a96a300c0e03088c2a8f51162321e0eaabf..8ef2bb55049c4cec508ab9c7e33bd43849bee585 100644 (file)
@@ -201,8 +201,10 @@ static void terminate_session(switch_core_session_t **session, switch_call_cause
                        if (state > CS_INIT && state < CS_HANGUP) {
                                channel_on_hangup(*session);
                        }
-                       
-                       ldl_session_set_private(tech_pvt->dlsession, NULL);
+
+                       if (tech_pvt->dlsession) {
+                               ldl_session_set_private(tech_pvt->dlsession, NULL);
+                       }
                        switch_core_session_destroy(session);
                }
        }