]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
how...?
authorWilliam King <william.king@quentustech.com>
Tue, 14 May 2013 23:47:13 +0000 (16:47 -0700)
committerWilliam King <william.king@quentustech.com>
Fri, 17 May 2013 18:36:31 +0000 (11:36 -0700)
src/mod/endpoints/mod_rtmp/mod_rtmp.c

index c89fa544d54905c401e443d9877bb29c4f6a829b..69aa590b569e0b835a02f02b5acad27dbbe594e7 100644 (file)
@@ -291,7 +291,13 @@ switch_status_t rtmp_on_hangup(switch_core_session_t *session)
         * since it now checks for the existance of the FS session safely.
         */
        if ( switch_thread_rwlock_trywrlock_timeout(rsession->session_rwlock, 10) == SWITCH_STATUS_SUCCESS) {
-               switch_core_hash_delete(rsession->session_hash, switch_core_session_get_uuid(session));
+               /*
+                * Why the heck would rsession->session_hash ever be null here?!?
+                * We only got here because the tech_pvt->rtmp_session wasn't null....!!!!
+                */
+               if ( rsession->session_hash ) {
+                       switch_core_hash_delete(rsession->session_hash, switch_core_session_get_uuid(session));
+               }
                switch_thread_rwlock_unlock(rsession->session_rwlock);
        }