ftpserver.pl: Corrected invalid user details check
...in both the IMAP LOGIN and POP3 PASS handlers introduced in commit187ac69374and84ad1569e5respectively.
This commit is contained in:
@@ -833,7 +833,7 @@ sub LOGIN_imap {
|
|||||||
if ($user eq "") {
|
if ($user eq "") {
|
||||||
sendcontrol "$cmdid BAD Command Argument\r\n";
|
sendcontrol "$cmdid BAD Command Argument\r\n";
|
||||||
}
|
}
|
||||||
elsif (($user ne $TEXT_USERNAME) && ($password ne $TEXT_PASSWORD)) {
|
elsif (($user ne $TEXT_USERNAME) || ($password ne $TEXT_PASSWORD)) {
|
||||||
sendcontrol "$cmdid NO LOGIN failed\r\n";
|
sendcontrol "$cmdid NO LOGIN failed\r\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -1489,7 +1489,7 @@ sub PASS_pop3 {
|
|||||||
|
|
||||||
logmsg "PASS_pop3 got $password\n";
|
logmsg "PASS_pop3 got $password\n";
|
||||||
|
|
||||||
if (($username ne $TEXT_USERNAME) && ($password ne $TEXT_PASSWORD)) {
|
if (($username ne $TEXT_USERNAME) || ($password ne $TEXT_PASSWORD)) {
|
||||||
sendcontrol "-ERR Login failure\r\n";
|
sendcontrol "-ERR Login failure\r\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user