mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
unit-test: Fix the geoip debug code
This commit is contained in:
@@ -56,7 +56,10 @@ bool GeoLookup::setDataBase(const std::string& filePath) {
|
||||
bool GeoLookup::lookup(const std::string& target, GeoIPRecord **gir,
|
||||
std::function<bool(int, std::string)> debug) {
|
||||
if (m_gi == NULL) {
|
||||
debug(4, "GeoIP: Database is not open. Use: SecGeoLookupDb directive.");
|
||||
if (debug) {
|
||||
debug(4, "GeoIP: Database is not open. " \
|
||||
"Use: SecGeoLookupDb directive.");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user