forked from mirrors/tftp-hpa-google
Correct bug which caused "r" rules to get incorrectly rejected as "ri" rules
This commit is contained in:
parent
6299024e7a
commit
9630aae006
3 changed files with 8 additions and 2 deletions
|
@ -234,7 +234,8 @@ static int parseline(char *line, struct rule *r, int lineno)
|
|||
if ( !(r->rule_flags & RULE_REWRITE) )
|
||||
r->rule_flags &= ~RULE_GLOBAL;
|
||||
|
||||
if ( r->rule_flags & (RULE_INVERSE|RULE_REWRITE) ) {
|
||||
if ( (r->rule_flags & (RULE_INVERSE|RULE_REWRITE)) ==
|
||||
(RULE_INVERSE|RULE_REWRITE) ) {
|
||||
syslog(LOG_ERR, "r rules cannot be inverted, line %d: %s\n", lineno, line);
|
||||
return -1; /* Error */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue