Explorar o código

Follow up to cd7e610
* Forgot to send the response back to the client.

aleos89 %!s(int64=8) %!d(string=hai) anos
pai
achega
bd65341685
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/login/loginclif.c

+ 1 - 1
src/login/loginclif.c

@@ -197,7 +197,7 @@ static void logclif_auth_failed(struct login_session_data* sd, int result) {
 		    login_log(ip, sd->userid, result, msg_txt(22)); //unknow error
 	}
 
-	if( result == 1 && login_config.dynamic_pass_failure_ban )
+	if( (result == 0 || result == 1) && login_config.dynamic_pass_failure_ban )
 		ipban_log(ip); // log failed password attempt
 
 //#if PACKETVER >= 20120000 /* not sure when this started */