diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-28 17:09:10 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-28 17:09:10 +0000 |
commit | b5125ad05d224b244e249d572352fee9a5472fa6 (patch) | |
tree | 937f2be9169585264955c1356940e68040e330d0 /src/login_sql/login.c | |
parent | a06046040d922ed9df27f3bfb164a979e449fe34 (diff) | |
download | hercules-b5125ad05d224b244e249d572352fee9a5472fa6.tar.gz hercules-b5125ad05d224b244e249d572352fee9a5472fa6.tar.bz2 hercules-b5125ad05d224b244e249d572352fee9a5472fa6.tar.xz hercules-b5125ad05d224b244e249d572352fee9a5472fa6.zip |
Fixed login_sql ipbans not working (due to signed/unsigned mismatch)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10390 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 d2cbb60ee..b8e57544a 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1260,7 +1260,7 @@ int lan_subnetcheck(uint32 ip) int login_ip_ban_check(uint32 ip) { - char* p = (char*)&ip; + uint8* p = (uint8*)&ip; sprintf(tmpsql, "SELECT count(*) FROM `ipbanlist` WHERE `list` = '%d.*.*.*' OR `list` = '%d.%d.*.*' OR `list` = '%d.%d.%d.*' OR `list` = '%d.%d.%d.%d'", p[3], p[3], p[2], p[3], p[2], p[1], p[3], p[2], p[1], p[0]); if (mysql_query(&mysql_handle, tmpsql)) { |