summaryrefslogtreecommitdiff
path: root/src/login_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/login_sql')
-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 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)) {