mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-28 11:32:33 +00:00
Fix null reference issue [skip ci]
This commit is contained in:
parent
caa0ffda00
commit
6a51bcf8fd
@ -51,7 +51,11 @@ DBcore::~DBcore()
|
|||||||
* are re-using the default database connection pointer when we dont have an
|
* are re-using the default database connection pointer when we dont have an
|
||||||
* external configuration setup ex: (content_database)
|
* external configuration setup ex: (content_database)
|
||||||
*/
|
*/
|
||||||
std::string mysql_connection_host = mysql.host;
|
std::string mysql_connection_host;
|
||||||
|
if (mysql.host) {
|
||||||
|
mysql_connection_host = mysql.host;
|
||||||
|
}
|
||||||
|
|
||||||
if (GetOriginHost() != mysql_connection_host) {
|
if (GetOriginHost() != mysql_connection_host) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user