diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-03-13 23:17:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-03-13 23:17:29 +0000 |
commit | 599f1a573263bf12b3d44920e79d36560f9bd7c9 (patch) | |
tree | 067f6214ee862c709eecfc8dd6f8d06b4bfe2dfe | |
parent | ad538431068ebe68d8f0515ee3be5e4b1c55f4fc (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |