aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-06-18 13:47:14 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-06-18 13:47:14 +0000
commit3d58a7d4e185fdd98cad23b8896cddfab0de594c (patch)
treed7847028fb0282d187c596698c003cf1a1f124c5
parentf4536bcba23c34db1d990a27d73156b024b11f5d (diff)
downloadfetchmail-3d58a7d4e185fdd98cad23b8896cddfab0de594c.tar.gz
fetchmail-3d58a7d4e185fdd98cad23b8896cddfab0de594c.tar.bz2
fetchmail-3d58a7d4e185fdd98cad23b8896cddfab0de594c.zip
The function from64tobits() in fetchmail-5.0.4 recognizes
end of string as '\r' or '='. gen_recv() zeros out the trailing '\n' or '\r', and from64tobits() didn't parse a challenge string correctly (for me.) svn path=/trunk/; revision=2506
-rw-r--r--base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base64.c b/base64.c
index 2deebc8a..1dc533dd 100644
--- a/base64.c
+++ b/base64.c
@@ -90,7 +90,7 @@ int from64tobits(char *out, const char *in)
}
}
} while
- (*in != '\r' && digit4 != '=');
+ (*in && *in != '\r' && digit4 != '=');
return (len);
}