summaryrefslogtreecommitdiff
path: root/src/login_sql/login.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-25 21:47:02 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-25 21:47:02 +0000
commit20ce782b85e3852e6e4fb83a0562b13dcc65b56c (patch)
tree7cfb1292232df997fec3ca6de4948340eb869526 /src/login_sql/login.c
parent7d9376f863ec9a6c08a096350d4148bd2d53a94b (diff)
downloadhercules-20ce782b85e3852e6e4fb83a0562b13dcc65b56c.tar.gz
hercules-20ce782b85e3852e6e4fb83a0562b13dcc65b56c.tar.bz2
hercules-20ce782b85e3852e6e4fb83a0562b13dcc65b56c.tar.xz
hercules-20ce782b85e3852e6e4fb83a0562b13dcc65b56c.zip
- Added a missing ntohl call in the loginlog code.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7884 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r--src/login_sql/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index d8e5f3394..ff42cc8ca 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -1768,7 +1768,7 @@ int parse_login(int fd) {
} //End login log of error.
if ((result == 1) && (dynamic_pass_failure_ban != 0) && log_login){ // failed password
sprintf(tmpsql,"SELECT count(*) FROM `%s` WHERE `ip` = '%lu' AND `rcode` = '1' AND `time` > NOW() - INTERVAL %d MINUTE",
- loginlog_db,*((ulong *)p), dynamic_pass_failure_ban_time); //how many times filed account? in one ip.
+ loginlog_db,ntohl(ipl), dynamic_pass_failure_ban_time); //how many times filed account? in one ip.
if(mysql_query(&mysql_handle, tmpsql)) {
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);