diff --git a/userspace/falco/outputs_http.cpp b/userspace/falco/outputs_http.cpp index 4c744f47..96c563b6 100644 --- a/userspace/falco/outputs_http.cpp +++ b/userspace/falco/outputs_http.cpp @@ -37,7 +37,7 @@ bool falco::outputs::output_http::init(const config &oc, m_curl = nullptr; m_http_headers = nullptr; m_max_consecutive_timeouts = - static_cast(std::stoi(m_oc.options["max_consecutive_timeouts"])); + static_cast(std::stoi(m_oc.options["max_consecutive_timeouts"]) & 0xFF); CURLcode res = CURLE_FAILED_INIT; m_curl = curl_easy_init(); @@ -105,7 +105,7 @@ bool falco::outputs::output_http::init(const config &oc, void falco::outputs::output_http::output(const message *msg) { CURLcode res = curl_easy_setopt(m_curl, CURLOPT_POSTFIELDS, msg->msg.c_str()); - uint32_t curl_easy_platform_calls = 0; + uint8_t curl_easy_platform_calls = 0; if(res == CURLE_OK) { do {