summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-27 06:32:02 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-27 06:32:02 +0000
commit4d5304234f1e9b99fdb738e15f0d55fa53385e43 (patch)
tree5aa6f583f01cf0523ac78d56d66ffb378e5fc5c1 /src/login
parent1624d1d57db3cfde3b4f42a55580f5a1e742f28e (diff)
downloadhercules-4d5304234f1e9b99fdb738e15f0d55fa53385e43.tar.gz
hercules-4d5304234f1e9b99fdb738e15f0d55fa53385e43.tar.bz2
hercules-4d5304234f1e9b99fdb738e15f0d55fa53385e43.tar.xz
hercules-4d5304234f1e9b99fdb738e15f0d55fa53385e43.zip
* Added missing option 'log_db_db' to loginlog_config_read(loginlog_sql.c).
* Fixed a memory leak in account_db_sql_destroy. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13001 54d463be-8e91-2dee-dedb-b68131a5f0ec
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