diff --git a/src/switch_core_file.c b/src/switch_core_file.c index ae040b31be..2841776304 100644 --- a/src/switch_core_file.c +++ b/src/switch_core_file.c @@ -78,6 +78,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, if (switch_directory_exists(file_path, fh->memory_pool) == SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "File [%s] is a directory not a file.\n", file_path); + status = SWITCH_STATUS_GENERR; goto fail; }