mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds support for libMaxMind
This commit is contained in:
@@ -2438,10 +2438,10 @@ namespace yy {
|
||||
driver.error(yystack_[1].location, ss.str());
|
||||
YYERROR;
|
||||
}
|
||||
if (GeoLookup::getInstance().setDataBase(file) == false) {
|
||||
if (GeoLookup::getInstance().setDataBase(file, &err) == false) {
|
||||
std::stringstream ss;
|
||||
ss << "Failed to load the GeoDB from: ";
|
||||
ss << file;
|
||||
ss << file << ". " << err;
|
||||
driver.error(yystack_[1].location, ss.str());
|
||||
YYERROR;
|
||||
}
|
||||
|
@@ -1557,10 +1557,10 @@ expression:
|
||||
driver.error(@0, ss.str());
|
||||
YYERROR;
|
||||
}
|
||||
if (GeoLookup::getInstance().setDataBase(file) == false) {
|
||||
if (GeoLookup::getInstance().setDataBase(file, &err) == false) {
|
||||
std::stringstream ss;
|
||||
ss << "Failed to load the GeoDB from: ";
|
||||
ss << file;
|
||||
ss << file << ". " << err;
|
||||
driver.error(@0, ss.str());
|
||||
YYERROR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user