diff options
-rw-r--r-- | imap.c | 2 | ||||
-rw-r--r-- | pop2.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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) @@ -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; } |