Don't cache ptr to nat rule in case of tablearg argument.
Bug spotted by: Dyadchenko Mihail
This commit is contained in:
parent
6d2d1c044f
commit
8368edc123
@ -3297,7 +3297,8 @@ do { \
|
||||
if (t == NULL) {
|
||||
retval = IP_FW_DENY;
|
||||
goto done;
|
||||
} else
|
||||
}
|
||||
if (cmd->arg1 != IP_FW_TABLEARG)
|
||||
((ipfw_insn_nat *)cmd)->nat = t;
|
||||
}
|
||||
retval = ipfw_nat_ptr(args, t, m);
|
||||
|
Loading…
Reference in New Issue
Block a user