From: Anthony Minessale Date: Sat, 19 Jan 2013 00:06:50 +0000 (-0600) Subject: httapi did not pass number of channels up to top level filehandle so stereo files... X-Git-Tag: v1.3.13~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e6460fed3d4182dd90d07c5e9a980c71d22acc9;p=thirdparty%2Ffreeswitch.git httapi did not pass number of channels up to top level filehandle so stereo files caused buffer overflow --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index e6dcb5d2fb..34073260de 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -2732,7 +2732,6 @@ static switch_status_t http_file_file_open(switch_file_handle_t *handle, const c unlink(context->cache_file); unlink(context->meta_file); unlink(context->lock_file); - return status; } } @@ -2744,6 +2743,7 @@ static switch_status_t http_file_file_open(switch_file_handle_t *handle, const c handle->seekable = context->fh.seekable; handle->speed = context->fh.speed; handle->interval = context->fh.interval; + handle->channels = context->fh.channels; if (switch_test_flag((&context->fh), SWITCH_FILE_NATIVE)) { switch_set_flag(handle, SWITCH_FILE_NATIVE);