Assume SMTP connection authenticated if empty password

pull/198/head
M66B 3 years ago
parent 2133a05df5
commit 67d72b73ea

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

Loading…
Cancel
Save