summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-10-23 15:52:39 +0000
committerGepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-10-23 15:52:39 +0000
commit7a1be872fda99c67b4c160bba4316780434e17b8 (patch)
treede3a027a07595bf90e866e2298cf5ad825388def /src
parent64ffd93566bb6dc40dbc338aac969adfc1615ed7 (diff)
downloadhercules-7a1be872fda99c67b4c160bba4316780434e17b8.tar.gz
hercules-7a1be872fda99c67b4c160bba4316780434e17b8.tar.bz2
hercules-7a1be872fda99c67b4c160bba4316780434e17b8.tar.xz
hercules-7a1be872fda99c67b4c160bba4316780434e17b8.zip
Fixed login-server using already removed `auth_node`. (bugreport:3254)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14094 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/login/login.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/login.c b/src/login/login.c
index e1299f586..d31408fac 100644
--- a/src/login/login.c
+++ b/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