View | Details | Raw Unified | Return to bug 244510 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-plugins_check__http.c (+17 lines)
Line 0 Link Here
1
From 365a15c3e13a66cde3a90215f0dfbf9609b55b24 Mon Sep 17 00:00:00 2001
2
From: madlohe <swolf@nagios.com>
3
Date: Wed, 26 Feb 2020 15:06:28 -0600
4
Subject: [PATCH] check_http: fixed missing parens in second set of calls to
5
 my_recv (was causing issues with regexp in larger web pages)
6
7
--- plugins/check_http.c.orig	2020-02-20 19:14:52 UTC
8
+++ plugins/check_http.c
9
@@ -1220,7 +1220,7 @@ check_http (void)
10
         seen_length = pagesize - content_start;
11
         /* Continue receiving the body until content-length is met */
12
         while (seen_length < content_length
13
-            && (i = my_recv(buffer, MAX_INPUT_BUFFER-1) > 0)) {
14
+            && ((i = my_recv(buffer, MAX_INPUT_BUFFER-1)) > 0)) {
15
 
16
             buffer[i] = '\0';
17
 

Return to bug 244510