From a43a54e7810c7626fbb6272a5c3883ea4a7b1df4 Mon Sep 17 00:00:00 2001 From: agree Date: Tue, 17 Jan 2023 13:09:09 -0500 Subject: [PATCH] [mod_curl] SWITCH_STANDARD_API need to return true --- src/mod/applications/mod_curl/mod_curl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mod/applications/mod_curl/mod_curl.c b/src/mod/applications/mod_curl/mod_curl.c index 02079d6767..91b8f3f9e0 100644 --- a/src/mod/applications/mod_curl/mod_curl.c +++ b/src/mod/applications/mod_curl/mod_curl.c @@ -702,7 +702,6 @@ http_sendfile_app_done: #define HTTP_SENDFILE_SYNTAX " [nopost|postparam1=foo&postparam2=bar... [event|stream|both|none [identifier ]]]" SWITCH_STANDARD_API(http_sendfile_function) { - switch_status_t status = SWITCH_STATUS_FALSE; switch_bool_t new_memory_pool = SWITCH_FALSE; char *argv[10] = { 0 }, *argv2[10] = { 0 }; int argc = 0, argc2 = 0; @@ -712,7 +711,6 @@ SWITCH_STANDARD_API(http_sendfile_function) if(zstr(cmd)) { - status = SWITCH_STATUS_SUCCESS; goto http_sendfile_usage; } if(session) @@ -741,7 +739,6 @@ SWITCH_STANDARD_API(http_sendfile_function) if (argc < 2 || argc > 5) { - status = SWITCH_STATUS_SUCCESS; goto http_sendfile_usage; } @@ -805,7 +802,6 @@ SWITCH_STANDARD_API(http_sendfile_function) http_sendfile_success_report(http_data, event); - status = SWITCH_STATUS_SUCCESS; goto http_sendfile_done; http_sendfile_usage: @@ -823,7 +819,7 @@ http_sendfile_done: switch_core_destroy_memory_pool(&pool); } - return status; + return SWITCH_STATUS_SUCCESS; } SWITCH_STANDARD_APP(curl_app_function)