Commit 99f11b70 99f11b70ede3564aaaff93baf8fa490f654d7d17 by Sam Roberts

imap logged the passwd in protocol traces, pop didn't, so I made them both

be the same (the way that is most useful when debugging protocol traces)
1 parent 9a022360
......@@ -437,7 +437,10 @@ pop_user (authority_t auth)
CHECK_ERROR_CLOSE (mbox, mpd, EACCES);
}
if (mpd->passwd)
{
free (mpd->passwd);
mpd->passwd = NULL;
}
/* Was it in the URL? */
{
size_t n = 0;
......@@ -455,13 +458,12 @@ pop_user (authority_t auth)
CHECK_ERROR_CLOSE (mbox, mpd, EINVAL);
}
status = pop_writeline (mpd, "PASS %s\r\n", mpd->passwd);
/* MAILBOX_DEBUG0 (mbox, MU_DEBUG_PROT, mpd->buffer); */
MAILBOX_DEBUG0 (mbox, MU_DEBUG_PROT, mpd->buffer);
/* We have to nuke the passwd. */
memset (mpd->passwd, '\0', strlen (mpd->passwd));
free (mpd->passwd);
mpd->passwd = NULL;
CHECK_ERROR_CLOSE (mbox, mpd, status);
MAILBOX_DEBUG0 (mbox, MU_DEBUG_PROT, "PASS *\n");
mpd->state = POP_AUTH_PASS;
case POP_AUTH_PASS:
......