Procházet zdrojové kódy

Should fix #530 - 'ip' should be set even if not debugging

madlohe před 6 roky
rodič
revize
e2bca90555
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      plugins-root/check_icmp.c

+ 1 - 1
plugins-root/check_icmp.c

@@ -1018,8 +1018,8 @@ static int wait_for_reply(int sock, u_int t) {
       return n;
     }
 
+    ip = (union ip_hdr *)buf;
     if (debug > 1) {
-      ip = (union ip_hdr *)buf;
       char address[address_length(address_family)];
       parse_address_string(address_family, &resp_addr, address,
                            sizeof(address));