diff options
| author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-10-24 08:34:31 +0000 |
|---|---|---|
| committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-10-24 08:34:31 +0000 |
| commit | b699c208e858032ffd1218a4e22cb822895fa097 (patch) | |
| tree | 3f197b21c139831ea7ba66eea9b3a07d273fb35c /plugins | |
| parent | 74e1a4c244e1915e5b63d4272a4942f5fbd3df78 (diff) | |
| download | monitoring-plugins-b699c208e858032ffd1218a4e22cb822895fa097.tar.gz | |
Restored accidently regressed fix
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1521 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_http.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 188e9ec0..abd8aa8d 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
| @@ -1094,9 +1094,8 @@ redir (char *pos, char *status_line) | |||
| 1094 | die (STATE_UNKNOWN, _("Could not allocate url\n")); | 1094 | die (STATE_UNKNOWN, _("Could not allocate url\n")); |
| 1095 | 1095 | ||
| 1096 | while (pos) { | 1096 | while (pos) { |
| 1097 | 1097 | sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i); | |
| 1098 | if (sscanf (pos, "%[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]:%n", xx, &i) < 1) { | 1098 | if (i == 0) { |
| 1099 | |||
| 1100 | pos += (size_t) strcspn (pos, "\r\n"); | 1099 | pos += (size_t) strcspn (pos, "\r\n"); |
| 1101 | pos += (size_t) strspn (pos, "\r\n"); | 1100 | pos += (size_t) strspn (pos, "\r\n"); |
| 1102 | if (strlen(pos) == 0) | 1101 | if (strlen(pos) == 0) |
