Assume SMTP connection authenticated if empty password

This commit is contained in:
M66B 2021-05-07 13:42:54 +02:00
parent 2133a05df5
commit 67d72b73ea
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,8 @@
package com.sun.mail.smtp;
import android.text.TextUtils;
import java.io.*;
import java.net.*;
import java.util.*;
@ -864,6 +866,9 @@ public class SMTPTransport extends Transport {
}
}
if (TextUtils.isEmpty(passwd))
return true;
if (mex != null) {
closeConnection();
throw mex;