From e5cb47e7eafe3c35ff9e159a07325b9f72a1b52f Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Mon, 18 Nov 2024 15:00:18 +0100 Subject: [PATCH] http_client: added missing exit path Signed-off-by: Leonardo Alminana --- src/flb_http_client_http1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flb_http_client_http1.c b/src/flb_http_client_http1.c index e09950c70fb..cbc4df2155c 100644 --- a/src/flb_http_client_http1.c +++ b/src/flb_http_client_http1.c @@ -526,6 +526,9 @@ static int compose_request_line(cfl_sds_t *output_buffer, else if (request->protocol_version == HTTP_PROTOCOL_VERSION_09) { protocol_version_string = ""; } + else { + return -1; + } method_name = flb_http_get_method_string_from_id(request->method);