Don't cache ptr to nat rule in case of tablearg argument.

Bug spotted by: Dyadchenko Mihail
This commit is contained in:
Paolo Pisati 2008-03-17 23:02:56 +00:00
parent 6d2d1c044f
commit 8368edc123
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177326

View file

@ -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);