diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-07 19:58:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-09 11:53:00 +0300 |
commit | de35955a5161631299c5f45472949d8ecd18136a (patch) | |
tree | 49aa67af5a9be10225097bf4cf17c60cfa980ec5 /src/login | |
parent | 12091c8fa07c05594a0034c791dacf82af030f69 (diff) | |
download | hercules-de35955a5161631299c5f45472949d8ecd18136a.tar.gz hercules-de35955a5161631299c5f45472949d8ecd18136a.tar.bz2 hercules-de35955a5161631299c5f45472949d8ecd18136a.tar.xz hercules-de35955a5161631299c5f45472949d8ecd18136a.zip |
Add checks to loginlog_sql.c
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/loginlog_sql.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/login/loginlog_sql.c b/src/login/loginlog_sql.c index 5654b4c5b..8ed6e395a 100644 --- a/src/login/loginlog_sql.c +++ b/src/login/loginlog_sql.c @@ -11,6 +11,7 @@ #include "../common/cbasetypes.h" #include "../common/mmo.h" +#include "../common/nullpo.h" #include "../common/socket.h" #include "../common/sql.h" #include "../common/strlib.h" @@ -67,6 +68,8 @@ void login_log(uint32 ip, const char* username, int rcode, const char* message) char esc_message[255*2+1]; int retcode; + nullpo_retv(username); + nullpo_retv(message); if( !enabled ) return; @@ -137,6 +140,8 @@ bool loginlog_config_read(const char* key, const char* value) { const char* signature; + nullpo_ret(key); + nullpo_ret(value); signature = "sql."; if( strncmpi(key, signature, strlen(signature)) == 0 ) { |