diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-24 21:52:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-24 21:52:49 +0300 |
commit | 6b1a6418c8691003b99b84b49d9d2ddcc399801b (patch) | |
tree | 45e6f9ea687bce37556a39a3d877aa461bf85068 /src | |
parent | f7ebaf0e90ee5692e5f36ce6909518bb38044f96 (diff) | |
download | evol-hercules-6b1a6418c8691003b99b84b49d9d2ddcc399801b.tar.gz evol-hercules-6b1a6418c8691003b99b84b49d9d2ddcc399801b.tar.bz2 evol-hercules-6b1a6418c8691003b99b84b49d9d2ddcc399801b.tar.xz evol-hercules-6b1a6418c8691003b99b84b49d9d2ddcc399801b.zip |
login: add missing checks.
Diffstat (limited to 'src')
-rw-r--r-- | src/login/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/parse.c b/src/login/parse.c index 7aa31e9..6cbc77b 100644 --- a/src/login/parse.c +++ b/src/login/parse.c @@ -91,6 +91,8 @@ void elogin_parse_client_login2(int fd) clienttype = RFIFOB(fd, 50); struct login_session_data* sd = (struct login_session_data*)session[fd]->session_data; + if (!sd) + return; char ip[16]; uint32 ipl = session[fd]->client_addr; |