diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-12 14:31:23 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-12 14:31:23 +0000 |
commit | ef4c97fcbdd1ed0ddac2a9b8e8d2a10ed0120fe1 (patch) | |
tree | 82bb42f2389b067a598de7d107cfbff9a0d04570 /src/login_sql/login.c | |
parent | a522db8a246bcac5c1aa82ee070db2c5453f0cb4 (diff) | |
download | hercules-ef4c97fcbdd1ed0ddac2a9b8e8d2a10ed0120fe1.tar.gz hercules-ef4c97fcbdd1ed0ddac2a9b8e8d2a10ed0120fe1.tar.bz2 hercules-ef4c97fcbdd1ed0ddac2a9b8e8d2a10ed0120fe1.tar.xz hercules-ef4c97fcbdd1ed0ddac2a9b8e8d2a10ed0120fe1.zip |
- Fixed the IP value being apparently incorrectly casted before inserting into the loginlog table on "connect success" events.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7634 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r-- | src/login_sql/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 237ab2a0d..9be95051a 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1595,7 +1595,7 @@ int parse_login(int fd) { } else {
if (p[0] != 127 && log_login) {
- sprintf(tmpsql,"INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%lu', '%s','100', 'login ok')", loginlog_db, (ulong)p, t_uid);
+ sprintf(tmpsql,"INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%lu', '%s','100', 'login ok')", loginlog_db, *((ulong *)p), t_uid);
//query
if(mysql_query(&mysql_handle, tmpsql)) {
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
|