Skip to content

Commit

Permalink
fix(userspace/libsinsp): ensure socket handler ares channel destroy w…
Browse files Browse the repository at this point in the history
…orks even when try_resolve has not been called (#1686)

Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>

Co-authored-by: Lorenzo Fontana <lo@linux.com>
  • Loading branch information
leodido and fntlnz committed Sep 15, 2020
1 parent 6eba0c0 commit 2aa88dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/socket_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ class socket_data_handler
http_parser_data m_http_parser_data;
unsigned m_data_limit = 524288; // bytes

ares_channel m_ares_channel;
ares_channel m_ares_channel = nullptr;
ares_options m_ares_opts;
ares_cb_result m_ares_cb_res;

Expand Down

0 comments on commit 2aa88dc

Please sign in to comment.