mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-19 21:48:52 -04:00
Restored accidently regressed fix
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1521 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
74e1a4c244
commit
b699c208e8
1 changed files with 2 additions and 3 deletions
|
|
@ -1094,9 +1094,8 @@ redir (char *pos, char *status_line)
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue