aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-11-27 02:49:53 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-11-27 02:49:53 +0000
commit739016719e25b36fb9a68d383ff5cdc71bc0b8c5 (patch)
treef8a88e41578cab52307cf006d4be7fcdeb32364b
parent15b7f3bc60c50d1b13430c2e51b52275fffc4cc9 (diff)
downloadfetchmail-739016719e25b36fb9a68d383ff5cdc71bc0b8c5.tar.gz
fetchmail-739016719e25b36fb9a68d383ff5cdc71bc0b8c5.tar.bz2
fetchmail-739016719e25b36fb9a68d383ff5cdc71bc0b8c5.zip
Enshroud RPOP password in local logs.
svn path=/branches/BRANCH_6-3/; revision=4967
-rw-r--r--pop3.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pop3.c b/pop3.c
index e3b06656..961692a5 100644
--- a/pop3.c
+++ b/pop3.c
@@ -640,8 +640,12 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
break;
case P_RPOP:
- if ((ok = gen_transact(sock,"USER %s", ctl->remotename)) == 0)
+ if ((ok = gen_transact(sock,"USER %s", ctl->remotename)) == 0) {
+ strlcpy(shroud, ctl->password, sizeof(shroud));
ok = gen_transact(sock, "RPOP %s", ctl->password);
+ memset(shroud, 0x55, sizeof(shroud));
+ shroud[0] = '\0';
+ }
break;
default: