]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_native_file] set SWITCH_FILE_NOMUX to prevent overflow in core (we should not... 255/head
authorDragos Oancea <dragos@signalwire.com>
Wed, 29 Jan 2020 19:06:48 +0000 (19:06 +0000)
committerDragos Oancea <dragos@signalwire.com>
Wed, 29 Jan 2020 19:06:48 +0000 (19:06 +0000)
src/mod/formats/mod_native_file/mod_native_file.c

index 585109351e887e7746aa1bfb5b4af4fe4cd0551b..2a40396a4f32752f36d708d1e846d3382081fe7c 100644 (file)
@@ -97,6 +97,7 @@ static switch_status_t native_file_file_open(switch_file_handle_t *handle, const
        handle->speed = 0;
        handle->private_info = context;
        handle->flags |= SWITCH_FILE_NATIVE;
+       handle->flags |= SWITCH_FILE_NOMUX;
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Opening File [%s] %dhz\n", path, handle->samplerate);
 
        return SWITCH_STATUS_SUCCESS;