chore(userspace/falco): properly check that parent init() did not fail for reasons.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>

Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
Federico Di Pierro 2023-08-31 15:16:22 +02:00 committed by poiana
parent acaaa0b4ca
commit 26f626c1d5

View File

@ -28,7 +28,9 @@ static size_t noop_write_callback(void *contents, size_t size, size_t nmemb, voi
bool falco::outputs::output_http::init(const config& oc, bool buffered, const std::string& hostname, bool json_output, std::string &err)
{
falco::outputs::abstract_output::init(oc, buffered, hostname, json_output, err);
if (!falco::outputs::abstract_output::init(oc, buffered, hostname, json_output, err)) {
return false;
}
m_curl = nullptr;
m_http_headers = nullptr;