From 599f1a573263bf12b3d44920e79d36560f9bd7c9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 13 Mar 2001 23:17:29 +0000 Subject: Restrict shrouding to during authentication phase. svn path=/trunk/; revision=3248 --- driver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/driver.c b/driver.c index df38f286..d33acfd1 100644 --- a/driver.c +++ b/driver.c @@ -1814,6 +1814,10 @@ const int maxfetch; /* maximum number of messages to fetch */ strcpy(shroud, ctl->password); ok = (protocol->getauth)(mailserver_socket, ctl, buf); + + /* prevent shrouding later on -- it might backfire */ + shroud[0] = '\0'; + if (ok != 0) { if (ok == PS_LOCKBUSY) @@ -2617,7 +2621,7 @@ va_dcl { char *cp; - if (shroud && shroud[0] && (cp = strstr(buf, shroud))) + if (shroud[0] && (cp = strstr(buf, shroud))) { char *sp; -- cgit v1.2.3