diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-17 20:24:48 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-17 20:24:48 +0000 |
commit | 5f6a6a2557a90573a504b541a3234f0dc566bf6a (patch) | |
tree | 4e4522d1c1c7411a2c7672af9af7887333dcdc50 /src/char_sql/char.c | |
parent | 724babffe10a6908d1510c941e5abfbe840fd271 (diff) | |
download | hercules-5f6a6a2557a90573a504b541a3234f0dc566bf6a.tar.gz hercules-5f6a6a2557a90573a504b541a3234f0dc566bf6a.tar.bz2 hercules-5f6a6a2557a90573a504b541a3234f0dc566bf6a.tar.xz hercules-5f6a6a2557a90573a504b541a3234f0dc566bf6a.zip |
* Merged do_sendrecv() and do_parse() into do_sockets()
* Fixed subnet check message displaying incorrect ip addresses
* client_addr will now be properly set to 0 for server connections
* Removed socket code that attempts to cope with code bugs at runtime
* Removed outdated copyright and version number from startup logo
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11503 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r-- | src/char_sql/char.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index f8729a39b..d233788c2 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -3075,12 +3075,13 @@ int parse_char(int fd) WFIFOB(fd,2) = 0; WFIFOSET(fd,3); - session[fd]->func_parse = parse_frommap; server_fd[i] = fd; server[i].ip = ntohl(RFIFOL(fd,54)); server[i].port = ntohs(RFIFOW(fd,58)); server[i].users = 0; memset(server[i].map, 0, sizeof(server[i].map)); + session[fd]->func_parse = parse_frommap; + session[fd]->client_addr = 0; realloc_fifo(fd, FIFOSIZE_SERVERLINK, FIFOSIZE_SERVERLINK); char_mapif_init(fd); // send gm acccounts level to map-servers @@ -3280,6 +3281,7 @@ int check_connect_login_server(int tid, unsigned int tick, int id, int data) return 0; } session[login_fd]->func_parse = parse_fromlogin; + session[login_fd]->client_addr = 0; realloc_fifo(login_fd, FIFOSIZE_SERVERLINK, FIFOSIZE_SERVERLINK); WFIFOHEAD(login_fd,86); |