From 08a3141d12ab89757e3a7c43a1521e703d55202d Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Tue, 25 Aug 2015 16:57:13 +0000 Subject: [PATCH] Fix an error spotted by sparse. Without the parens, the 2 first bits are reseted, instead of just the one for CONDFLAG_NOCASE. This "bug" looks harmless as the first bit (CONDFLAG_NONE) is never tested. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1697735 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_rewrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c index b25acdec0d..d5d3d715ee 100644 --- a/modules/mappers/mod_rewrite.c +++ b/modules/mappers/mod_rewrite.c @@ -3439,7 +3439,7 @@ static const char *cmd_rewritecond(cmd_parms *cmd, void *in_dconf, "RewriteCond: NoCase option for non-regex pattern '%s' " "is not supported and will be ignored. (%s:%d)", a2, cmd->directive->filename, cmd->directive->line_num); - newcond->flags &= ~CONDFLAG_NOCASE; + newcond->flags &= ~(CONDFLAG_NOCASE); } newcond->pskip = a2 - newcond->pattern; -- 2.50.0