Skip to content

Commit b8110f9

Browse files
Leonardo Alminanaedsiper
authored andcommitted
http_client: added missing exit path
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent eefac86 commit b8110f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flb_http_client_http1.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ static int compose_request_line(cfl_sds_t *output_buffer,
528528
else if (request->protocol_version == HTTP_PROTOCOL_VERSION_09) {
529529
protocol_version_string = "";
530530
}
531+
else {
532+
return -1;
533+
}
531534

532535
method_name = flb_http_get_method_string_from_id(request->method);
533536

0 commit comments

Comments
 (0)