]> granicus.if.org Git - apache/commitdiff
Fix an error spotted by sparse.
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 25 Aug 2015 16:57:13 +0000 (16:57 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 25 Aug 2015 16:57:13 +0000 (16:57 +0000)
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

index b25acdec0dfe5eeffb2883d8873a87fe6069da7c..d5d3d715ee7b595caae12e5a82b1b074e8814311 100644 (file)
@@ -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;