From: William King Date: Tue, 14 May 2013 23:47:13 +0000 (-0700) Subject: how...? X-Git-Tag: v1.2.13~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66652ec1983f144e2a1856fe66da3b98f74cb90a;p=thirdparty%2Ffreeswitch.git how...? --- diff --git a/src/mod/endpoints/mod_rtmp/mod_rtmp.c b/src/mod/endpoints/mod_rtmp/mod_rtmp.c index 384cd05ccf..ace3099774 100644 --- a/src/mod/endpoints/mod_rtmp/mod_rtmp.c +++ b/src/mod/endpoints/mod_rtmp/mod_rtmp.c @@ -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); }