--fix: pop3 should not report login success when the user passes in an incorrect password

This commit is contained in:
pfelt
2009-08-26 03:52:09 +00:00
parent 69d1290104
commit 3eb5bb8302
+2
View File
@@ -464,6 +464,8 @@ ConnectUserToNMAPServer(POP3Client *client, unsigned char *username, unsigned ch
XplSafeIncrement(POP3.stats.badPasswords);
Log(LOG_NOTICE, "Incorrect password for user %s from host %s", username,
LOGIP(client->conn->socketAddress));
/* the use was not found. Error, don't continue */
return(POP3_NMAP_USER_UNKNOWN);
}
MsgAuthGetUserStore(username, &nmap);