[Nagiosplug-checkins] nagiosplug/plugins check_http.c,1.94,1.95

Ton Voon tonvoon at users.sourceforge.net
Tue Oct 24 10:34:33 CEST 2006


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

Modified Files:
	check_http.c 
Log Message:
Restored accidently regressed fix


Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- check_http.c	23 Oct 2006 21:47:40 -0000	1.94
+++ check_http.c	24 Oct 2006 08:34:31 -0000	1.95
@@ -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