diff options
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r-- | plugins/check_curl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 680ecef7..b1021045 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
@@ -569,8 +569,9 @@ mp_subcheck check_http(const check_curl_config config, check_curl_working_state | |||
569 | sc_body_regex = mp_set_subcheck_state(sc_body_regex, STATE_OK); | 569 | sc_body_regex = mp_set_subcheck_state(sc_body_regex, STATE_OK); |
570 | } | 570 | } |
571 | } else if (errcode == REG_NOMATCH) { | 571 | } else if (errcode == REG_NOMATCH) { |
572 | xasprintf(&sc_body_regex.output, "%s not", sc_body_regex.output); | ||
573 | // got no match | 572 | // got no match |
573 | xasprintf(&sc_body_regex.output, "%s not", sc_body_regex.output); | ||
574 | |||
574 | if (config.invert_regex) { | 575 | if (config.invert_regex) { |
575 | sc_body_regex = mp_set_subcheck_state(sc_body_regex, STATE_OK); | 576 | sc_body_regex = mp_set_subcheck_state(sc_body_regex, STATE_OK); |
576 | } else { | 577 | } else { |