From 3a501db74967d4c31aa749e1baec8aa7bdef96e4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 14 Mar 2001 00:09:16 +0000 Subject: Shrouding is now done over a narrower scope. svn path=/trunk/; revision=3252 --- imap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index d92dad03..be2fcd5b 100644 --- a/imap.c +++ b/imap.c @@ -375,7 +375,9 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting) imap_canonicalize(remotename, ctl->remotename, NAMELEN); imap_canonicalize(password, ctl->password, PASSWORDLEN); + imap_canonicalize(shroud, ctl->password, PASSWORDLEN); ok = gen_transact(sock, "LOGIN \"%s\" \"%s\"", remotename, password); + shroud[0] = '\0'; } if (ok) @@ -827,7 +829,6 @@ const static struct method imap = TRUE, /* this is a tagged protocol */ FALSE, /* no message delimiter */ imap_ok, /* parse command response */ - imap_canonicalize, /* deal with embedded slashes and spaces */ imap_getauth, /* get authorization */ imap_getrange, /* query range of messages */ imap_getsizes, /* get sizes of messages (used for ESMTP SIZE option) */ -- cgit v1.2.3