]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3882 please try this patch
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 8 Feb 2012 18:11:15 +0000 (12:11 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 8 Feb 2012 18:11:15 +0000 (12:11 -0600)
src/mod/endpoints/mod_rtmp/rtmp.c

index 701487020e690ed9a92182fff3094493632450a2..25f769b5521892d0d50ef781ddcdd4ce1fc7222c 100644 (file)
@@ -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++;