瀏覽代碼

Fixed login-server using already removed `auth_node`. (bugreport:3254)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14094 54d463be-8e91-2dee-dedb-b68131a5f0ec
Gepard 15 年之前
父節點
當前提交
f5024cfa8d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/login/login.c

+ 3 - 3
src/login/login.c

@@ -416,9 +416,6 @@ int parse_fromchar(int fd)
 			{// found
 				//ShowStatus("Char-server '%s': authentication of the account %d accepted (ip: %s).\n", server[id].name, account_id, ip);
 
-				// each auth entry can only be used once
-				idb_remove(auth_db, account_id);
-
 				// send ack
 				WFIFOHEAD(fd,25);
 				WFIFOW(fd,0) = 0x2713;
@@ -431,6 +428,9 @@ int parse_fromchar(int fd)
 				WFIFOL(fd,20) = node->version;
 				WFIFOB(fd,24) = node->clienttype;
 				WFIFOSET(fd,25);
+
+				// each auth entry can only be used once
+				idb_remove(auth_db, account_id);
 			}
 			else
 			{// authentication not found