aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-03-13 23:17:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-03-13 23:17:29 +0000
commit599f1a573263bf12b3d44920e79d36560f9bd7c9 (patch)
tree067f6214ee862c709eecfc8dd6f8d06b4bfe2dfe
parentad538431068ebe68d8f0515ee3be5e4b1c55f4fc (diff)
downloadfetchmail-599f1a573263bf12b3d44920e79d36560f9bd7c9.tar.gz
fetchmail-599f1a573263bf12b3d44920e79d36560f9bd7c9.tar.bz2
fetchmail-599f1a573263bf12b3d44920e79d36560f9bd7c9.zip
Restrict shrouding to during authentication phase.
svn path=/trunk/; revision=3248
-rw-r--r--driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index df38f286..d33acfd1 100644
--- a/driver.c
+++ b/driver.c
@@ -1814,6 +1814,10 @@ const int maxfetch; /* maximum number of messages to fetch */
strcpy(shroud, ctl->password);
ok = (protocol->getauth)(mailserver_socket, ctl, buf);
+
+ /* prevent shrouding later on -- it might backfire */
+ shroud[0] = '\0';
+
if (ok != 0)
{
if (ok == PS_LOCKBUSY)
@@ -2617,7 +2621,7 @@ va_dcl
{
char *cp;
- if (shroud && shroud[0] && (cp = strstr(buf, shroud)))
+ if (shroud[0] && (cp = strstr(buf, shroud)))
{
char *sp;