Explorar o código

check_http: fixed missing parens in second set of calls to my_recv (was causing issues with regexp in larger web pages)

madlohe %!s(int64=6) %!d(string=hai) anos
pai
achega
365a15c3e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/check_http.c

+ 1 - 1
plugins/check_http.c

@@ -1220,7 +1220,7 @@ check_http (void)
         seen_length = pagesize - content_start;
         /* Continue receiving the body until content-length is met */
         while (seen_length < content_length
-            && (i = my_recv(buffer, MAX_INPUT_BUFFER-1) > 0)) {
+            && ((i = my_recv(buffer, MAX_INPUT_BUFFER-1)) > 0)) {
 
             buffer[i] = '\0';