Commit f9022892 f9022892b640af721d510d67b5f5d26c8ac0cd1e by Sergey Poznyakoff

(imap4d_login): Do not proceed if tls_required is set.

1 parent bf959364
...@@ -23,7 +23,7 @@ imap4d_login (struct imap4d_command *command, char *arg) ...@@ -23,7 +23,7 @@ imap4d_login (struct imap4d_command *command, char *arg)
23 char *sp = NULL, *username, *pass; 23 char *sp = NULL, *username, *pass;
24 int rc; 24 int rc;
25 25
26 if (login_disabled) 26 if (login_disabled || tls_required)
27 return util_finish (command, RESP_NO, "Command disabled"); 27 return util_finish (command, RESP_NO, "Command disabled");
28 28
29 username = util_getword (arg, &sp); 29 username = util_getword (arg, &sp);
......