Skip to content

Commit

Permalink
chore(userspace/falco): properly check that parent init() did not fai…
Browse files Browse the repository at this point in the history
…l for reasons.

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

Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
  • Loading branch information
2 people authored and poiana committed Aug 31, 2023
1 parent acaaa0b commit 26f626c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion userspace/falco/outputs_http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26f626c

Please sign in to comment.