summaryrefslogtreecommitdiff
path: root/src/login_sql/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r--src/login_sql/login.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index 9be95051a..059611979 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -1569,6 +1569,7 @@ int parse_login(int fd) {
}
account.version = RFIFOL(fd, 2);
+ if (!account.version) account.version = 1; //Force some version...
memcpy(account.userid,RFIFOP(fd, 6),NAME_LENGTH);
account.userid[23] = '\0';
memcpy(account.passwd,RFIFOP(fd, 30),NAME_LENGTH);