SF.net SVN: nagiosplug: [2008] nagiosplug/trunk

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
Revision: 2008
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2008&view=rev
Author:   dermoth
Date:     2008-05-30 16:38:00 -0700 (Fri, 30 May 2008)

Log Message:
-----------
Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)

Modified Paths:
--------------
    nagiosplug/trunk/NEWS
    nagiosplug/trunk/THANKS.in
    nagiosplug/trunk/plugins/check_http.c

Modified: nagiosplug/trunk/NEWS
===================================================================
--- nagiosplug/trunk/NEWS	2008-05-29 10:21:50 UTC (rev 2007)
+++ nagiosplug/trunk/NEWS	2008-05-30 23:38:00 UTC (rev 2008)
@@ -1,5 +1,8 @@
 This file documents the major additions and syntax changes between releases.
 
+1.4.?? ??th ??? 200?
+	Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)
+
 1.4.12 27th May 2008
 	Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren)
 	New check_icmp -s option to specify the source IP address

Modified: nagiosplug/trunk/THANKS.in
===================================================================
--- nagiosplug/trunk/THANKS.in	2008-05-29 10:21:50 UTC (rev 2007)
+++ nagiosplug/trunk/THANKS.in	2008-05-30 23:38:00 UTC (rev 2008)
@@ -235,3 +235,4 @@
 Jan Wagner
 Christian Schneemann
 Rob Windsor
+Hilko Bengen

Modified: nagiosplug/trunk/plugins/check_http.c
===================================================================
--- nagiosplug/trunk/plugins/check_http.c	2008-05-29 10:21:50 UTC (rev 2007)
+++ nagiosplug/trunk/plugins/check_http.c	2008-05-30 23:38:00 UTC (rev 2008)
@@ -598,8 +598,11 @@
     /* Skip to the end of the header, including continuation lines. */
     while (*s && !(*s == '\n' && (s[1] != ' ' && s[1] != '\t')))
       s++;
-    s++;
 
+    /* Avoid stepping over end-of-string marker */
+    if (*s)
+      s++;
+
     /* Process this header. */
     if (value && value > field+2) {
       char *ff = (char *) malloc (value-field);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.