From: Anthony Minessale Date: Wed, 8 Feb 2012 18:11:15 +0000 (-0600) Subject: FS-3882 please try this patch X-Git-Tag: v1.2-rc1~19^2^2~68^2~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77b8c0785c8408c979273ef79eb802587ca8af4f;p=thirdparty%2Ffreeswitch.git FS-3882 please try this patch --- diff --git a/src/mod/endpoints/mod_rtmp/rtmp.c b/src/mod/endpoints/mod_rtmp/rtmp.c index 701487020e..25f769b552 100644 --- a/src/mod/endpoints/mod_rtmp/rtmp.c +++ b/src/mod/endpoints/mod_rtmp/rtmp.c @@ -886,6 +886,11 @@ switch_status_t rtmp_handle_data(rtmp_session_t *rsession) if (rsession->tech_pvt) { uint16_t len = state->origlen; + if (!rsession->tech_pvt->readbuf) { + return SWITCH_STATUS_FALSE; + } + + switch_mutex_lock(rsession->tech_pvt->readbuf_mutex); if (rsession->tech_pvt->maxlen && switch_buffer_inuse(rsession->tech_pvt->readbuf) > rsession->tech_pvt->maxlen * 40) { rsession->tech_pvt->over_size++;