summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
Diffstat (limited to 'src/login')
-rw-r--r--src/login/account_sql.c1
-rw-r--r--src/login/loginlog_sql.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/login/account_sql.c b/src/login/account_sql.c
index b510949fa..9bd5e292e 100644
--- a/src/login/account_sql.c
+++ b/src/login/account_sql.c
@@ -125,6 +125,7 @@ static void account_db_sql_destroy(AccountDB* self)
Sql_Free(db->accounts);
db->accounts = NULL;
+ aFree(db);
}
/// Gets a property from this database.
diff --git a/src/login/loginlog_sql.c b/src/login/loginlog_sql.c
index 96bff6957..69a1c1910 100644
--- a/src/login/loginlog_sql.c
+++ b/src/login/loginlog_sql.c
@@ -81,6 +81,9 @@ bool loginlog_config_read(const char* key, const char* value)
if( strcmpi(key, "log_db_pw") == 0 )
safestrncpy(log_db_pw, value, sizeof(log_db_pw));
else
+ if( strcmpi(key, "log_db_db") == 0 )
+ safestrncpy(log_db_db, value, sizeof(log_db_db));
+ else
if( strcmpi(key, "log_db") == 0 )
safestrncpy(log_db, value, sizeof(log_db));
else