Преглед изворни кода

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

madlohe пре 6 година
родитељ
комит
e2bca90555
1 измењених фајлова са 1 додато и 1 уклоњено
  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));