Skip to content

Commit

Permalink
parser: Updates the generated parser file
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Zimmerle committed Sep 12, 2018
1 parent a719871 commit 9c73c09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser/seclang-parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<Operator> > (), 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
Expand Down Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 9c73c09

Please sign in to comment.