summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74e1a4c)
raw | patch | inline | side by side (parent: 74e1a4c)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 24 Oct 2006 08:34:31 +0000 (08:34 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 24 Oct 2006 08:34:31 +0000 (08:34 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1521 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 188e9ec022f5a7f2634e7936d2f4abf2977ae116..abd8aa8dadf968f45a2fcf22ef1e02a823c5af12 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
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)