mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-27 23:27:20 +00:00
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:
parent
acaaa0b4ca
commit
26f626c1d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user