summaryrefslogtreecommitdiff
path: root/src/login_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/login_sql')
-rw-r--r--src/login_sql/login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index c79b57b4b..e2d63626e 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -1515,7 +1515,7 @@ int parse_login(int fd)
}
}
} else {
- char* error;
+ const char* error = "";
WFIFOHEAD(fd,23);
if (login_config.log_login)
{
@@ -1547,7 +1547,7 @@ int parse_login(int fd)
default : error = "Unknown Error."; break;
}
- sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%u', '%s', '%d','login failed : %s')", loginlog_db, ntohl(ipl), t_uid, result, error);
+ sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%lu', '%s', '%d','login failed : %s')", loginlog_db, ntohl(ipl), t_uid, result, error);
//query
if(mysql_query(&mysql_handle, tmpsql)) {