Commit af2c0ebb af2c0ebbab6f2e93415d035039104b8be6b44799 by Wojciech Polak

(POP_AUTH_USER_ACK): Protect password in debug mode (PASS ***).

1 parent e4730047
......@@ -514,7 +514,7 @@ _pop_user (authority_t auth)
CHECK_ERROR_CLOSE (mbox, mpd, MU_ERR_NOPASSWORD);
}
status = pop_writeline (mpd, "PASS %s\r\n", mpd->passwd);
MAILBOX_DEBUG0 (mbox, MU_DEBUG_PROT, mpd->buffer);
MAILBOX_DEBUG0 (mbox, MU_DEBUG_PROT, "PASS ***\n");
/* Leave not trail of the passwd. */
memset (mpd->passwd, '\0', strlen (mpd->passwd));
free (mpd->passwd);
......