diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-11 14:48:45 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-11 14:48:45 +0000 |
commit | 8bad65f1437eb91cb63e9382542442775ade747b (patch) | |
tree | 55718101d36b890769d59596c01f462cc0b2eed5 /src | |
parent | 2d61cb61795cd386793c01683ab41b15982a1086 (diff) | |
download | hercules-8bad65f1437eb91cb63e9382542442775ade747b.tar.gz hercules-8bad65f1437eb91cb63e9382542442775ade747b.tar.bz2 hercules-8bad65f1437eb91cb63e9382542442775ade747b.tar.xz hercules-8bad65f1437eb91cb63e9382542442775ade747b.zip |
Patched a mistake in r12043 that caused inter-server connection problems when check_client_version was enabled.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12055 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/login/login.c | 1 | ||||
-rw-r--r-- | src/login_sql/login.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c index 6ed9fdb6a..02c6cbd38 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -2042,6 +2042,7 @@ int parse_login(int fd) memset(&account, 0, sizeof(account)); account.passwdenc = 0; + account.version = login_config.client_version_to_connect; // hack to skip version check safestrncpy(account.userid, (char*)RFIFOP(fd,2), NAME_LENGTH); remove_control_chars(account.userid); safestrncpy(account.passwd, (char*)RFIFOP(fd,26), NAME_LENGTH); remove_control_chars(account.passwd); server_ip = ntohl(RFIFOL(fd,54)); diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 5a197ca43..f4a40c990 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1470,6 +1470,7 @@ int parse_login(int fd) memset(&account, 0, sizeof(account)); account.passwdenc = 0; + account.version = login_config.client_version_to_connect; // hack to skip version check safestrncpy(account.userid, (char*)RFIFOP(fd,2), NAME_LENGTH); safestrncpy(account.passwd, (char*)RFIFOP(fd,26), NAME_LENGTH); server_ip = ntohl(RFIFOL(fd,54)); |