Skip to content

Commit 9c73c09

Browse files
author
Felipe Zimmerle
committed
parser: Updates the generated parser file
1 parent a719871 commit 9c73c09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/parser/seclang-parser.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,11 +1988,11 @@ namespace yy {
19881988
case 71:
19891989
#line 1082 "seclang-parser.yy" // lalr1.cc:856
19901990
{
1991-
#ifdef WITH_GEOIP
1991+
#if defined(WITH_GEOIP) or defined(WITH_MAXMIND)
19921992
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::GeoLookup());
19931993
#else
19941994
std::stringstream ss;
1995-
ss << "This version of ModSecurity was not compiled with GeoIP support.";
1995+
ss << "This version of ModSecurity was not compiled with GeoIP or MaxMind support.";
19961996
driver.error(yystack_[1].location, ss.str());
19971997
YYERROR;
19981998
#endif // WITH_GEOIP
@@ -2669,7 +2669,7 @@ namespace yy {
26692669
case 125:
26702670
#line 1557 "seclang-parser.yy" // lalr1.cc:856
26712671
{
2672-
#ifdef WITH_GEOIP
2672+
#if defined(WITH_GEOIP) or defined(WITH_MAXMIND)
26732673
std::string err;
26742674
std::string file = modsecurity::utils::find_resource(yystack_[0].value.as< std::string > (),
26752675
driver.ref.back(), &err);
@@ -2689,7 +2689,7 @@ namespace yy {
26892689
}
26902690
#else
26912691
std::stringstream ss;
2692-
ss << "This version of ModSecurity was not compiled with GeoIP support.";
2692+
ss << "This version of ModSecurity was not compiled with GeoIP or MaxMind support.";
26932693
driver.error(yystack_[1].location, ss.str());
26942694
YYERROR;
26952695
#endif // WITH_GEOIP

0 commit comments

Comments
 (0)