From 9c73c09abd8a468cb1deb07567641172f8e5e487 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Tue, 11 Sep 2018 21:01:13 -0300 Subject: [PATCH] parser: Updates the generated parser file --- src/parser/seclang-parser.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parser/seclang-parser.cc b/src/parser/seclang-parser.cc index 0e20589c..efe8d773 100644 --- a/src/parser/seclang-parser.cc +++ b/src/parser/seclang-parser.cc @@ -1988,11 +1988,11 @@ namespace yy { case 71: #line 1082 "seclang-parser.yy" // lalr1.cc:856 { -#ifdef WITH_GEOIP +#if defined(WITH_GEOIP) or defined(WITH_MAXMIND) OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr > (), new operators::GeoLookup()); #else std::stringstream ss; - ss << "This version of ModSecurity was not compiled with GeoIP support."; + ss << "This version of ModSecurity was not compiled with GeoIP or MaxMind support."; driver.error(yystack_[1].location, ss.str()); YYERROR; #endif // WITH_GEOIP @@ -2669,7 +2669,7 @@ namespace yy { case 125: #line 1557 "seclang-parser.yy" // lalr1.cc:856 { -#ifdef WITH_GEOIP +#if defined(WITH_GEOIP) or defined(WITH_MAXMIND) std::string err; std::string file = modsecurity::utils::find_resource(yystack_[0].value.as< std::string > (), driver.ref.back(), &err); @@ -2689,7 +2689,7 @@ namespace yy { } #else std::stringstream ss; - ss << "This version of ModSecurity was not compiled with GeoIP support."; + ss << "This version of ModSecurity was not compiled with GeoIP or MaxMind support."; driver.error(yystack_[1].location, ss.str()); YYERROR; #endif // WITH_GEOIP