瀏覽代碼

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

aleos89 8 年之前
父節點
當前提交
bd65341685
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 */