aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-11-27 02:09:01 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-11-27 02:09:01 +0000
commitc5cf37a81f295113478aa9271cef6f43bb9e7f15 (patch)
tree7c4dba9428b7b782b31550c52cefa0ec1790b684
parent0e30e6abbd90d7e6cb43fbebad0753e88ae75bc8 (diff)
downloadfetchmail-c5cf37a81f295113478aa9271cef6f43bb9e7f15.tar.gz
fetchmail-c5cf37a81f295113478aa9271cef6f43bb9e7f15.tar.bz2
fetchmail-c5cf37a81f295113478aa9271cef6f43bb9e7f15.zip
Trash shroud store.
svn path=/branches/BRANCH_6-3/; revision=4965
-rw-r--r--imap.c2
-rw-r--r--pop2.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/imap.c b/imap.c
index 23db2188..7b3e957e 100644
--- a/imap.c
+++ b/imap.c
@@ -610,7 +610,9 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
snprintf(shroud, sizeof (shroud), "\"%s\"", password);
ok = gen_transact(sock, "LOGIN \"%s\" \"%s\"", remotename, password);
+ memset(shroud, 0x55, sizeof(shroud));
shroud[0] = '\0';
+ memset(password, 0x55, strlen(password));
free(password);
free(remotename);
if (ok)
diff --git a/pop2.c b/pop2.c
index fe00cd6c..3be6fcd2 100644
--- a/pop2.c
+++ b/pop2.c
@@ -70,6 +70,7 @@ static int pop2_getauth(int sock, struct query *ctl, char *buf)
status = gen_transact(sock,
"HELO %s %s",
ctl->remotename, ctl->password);
+ memset(shroud, 0x55, sizeof(shroud));
shroud[0] = '\0';
return status;
}