Explorar o código

Prevent this_status from getting stuck when iterating through hosts. Resolves #520

madlohe %!s(int64=6) %!d(string=hai) anos
pai
achega
afb9249e87
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      plugins-root/check_icmp.c

+ 1 - 0
plugins-root/check_icmp.c

@@ -1361,6 +1361,7 @@ static void finish(int sig) {
   status = STATE_OK;
   host = list;
   while (host) {
+    this_status = STATE_OK;
     if (!host->icmp_recv) {
       /* rta 0 is ofcourse not entirely correct, but will still show up
        * conspicuosly as missing entries in perfparse and cacti */