summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/login/parse.c2
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;