b=153243 Error in recipient certificate availability checking, causing unreadable mail

r=ssaux sr=jag


git-svn-id: svn://10.0.0.236/trunk@123745 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kaie%netscape.com 2002-06-21 00:43:18 +00:00
parent 2686facd07
commit df04878acc

View File

@ -914,12 +914,12 @@ nsresult nsMsgComposeSecure::MimeCryptoHackCerts(const char *aRecipients,
/* If the message is to be encrypted, then get the recipient certs */
if (aEncrypt) {
mailbox = mailbox_list;
nsCString mailbox_lowercase;
ToLowerCase(nsDependentCString(mailbox), mailbox_lowercase);
PRBool already_added_self_cert = PR_FALSE;
for (; count > 0; count--) {
nsCString mailbox_lowercase;
ToLowerCase(nsDependentCString(mailbox), mailbox_lowercase);
nsCOMPtr<nsIX509Cert> cert;
certdb->GetCertByEmailAddress(nsnull, mailbox_lowercase.get(), getter_AddRefs(cert));
PRBool foundValidCert = PR_FALSE;