Преглед на файлове

fix error message when -e <response> fails

slsca преди 7 години
родител
ревизия
f250f18fd1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      plugins/check_http.c

+ 1 - 1
plugins/check_http.c

@@ -1269,7 +1269,7 @@ check_http (void)
     }
 
     /* Bypass normal status line check if server_expect was set by user and not default */
-    if ( server_expect_yn  )  {
+    if ( server_expect_yn && !bad_response )  {
 
         xasprintf (&msg,
                    _("Status line output matched \"%s\" - "), server_expect);