[Nagiosplug-checkins] nagiosplug/plugins check_http.c,1.92,1.93

Ton Voon tonvoon at users.sourceforge.net
Thu Oct 19 21:00:01 CEST 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv24132/plugins

Modified Files:
	check_http.c 
Log Message:
Redirection error if other headers beginning with L (Aravind Gottipati - 1562572)


Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- check_http.c	19 Oct 2006 00:25:16 -0000	1.92
+++ check_http.c	19 Oct 2006 18:59:58 -0000	1.93
@@ -1094,9 +1094,8 @@
     die (STATE_UNKNOWN, _("Could not allocate url\n"));
 
   while (pos) {
-
-    if (sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i) < 1) {
-
+    sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i);
+    if (i == 0) {
       pos += (size_t) strcspn (pos, "\r\n");
       pos += (size_t) strspn (pos, "\r\n");
       if (strlen(pos) == 0) 





More information about the Commits mailing list