monitoring-plugins/plugins/check_curl.d
inqrphl 605d59f957
check_curl fix: populate the dns cache when hostname gets resolved locally (#2280)
* check_curl fix: populate the dns cache when hostname gets resolved locally

due to a previous refactor, it would populate it when hostname wasnt getting resolved locally

hostname_gets_resolved locally now assumes that resolving is local if proxy was unknown. previously was returning 0 instead of true, contradicting what it says

fix a memory leak. server_address_clean was being assigned to another strndup result before being freed

fix another memory leak, one path to return in hostname_gets_resolved_locally was not freeing up two variables

improve logs and comments around hostname_gets_resolved_locally

clang-format is applied

* check_curl: fix typo in comment

---------

Co-authored-by: Ahmet Oeztuerk <Ahmet.Oeztuerk@consol.de>
2026-06-17 23:26:04 +02:00
..
check_curl_helpers.c check_curl fix: populate the dns cache when hostname gets resolved locally (#2280) 2026-06-17 23:26:04 +02:00
check_curl_helpers.h check_curl fix: populate the dns cache when hostname gets resolved locally (#2280) 2026-06-17 23:26:04 +02:00
config.h Run clang-format on everything once again (#2275) 2026-06-10 14:49:33 +02:00