diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-11-27 02:49:53 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-11-27 02:49:53 +0000 |
commit | 739016719e25b36fb9a68d383ff5cdc71bc0b8c5 (patch) | |
tree | f8a88e41578cab52307cf006d4be7fcdeb32364b | |
parent | 15b7f3bc60c50d1b13430c2e51b52275fffc4cc9 (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: |