From c5cf37a81f295113478aa9271cef6f43bb9e7f15 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 27 Nov 2006 02:09:01 +0000 Subject: Trash shroud store. svn path=/branches/BRANCH_6-3/; revision=4965 --- imap.c | 2 ++ pop2.c | 1 + 2 files changed, 3 insertions(+) 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; } -- cgit v1.2.3