diff options
| author | Paolo Pisati <piso@FreeBSD.org> | 2008-03-04 12:07:34 +0000 |
|---|---|---|
| committer | Paolo Pisati <piso@FreeBSD.org> | 2008-03-04 12:07:34 +0000 |
| commit | e26f1c1640d513ab6d71960ff572cf4590072a55 (patch) | |
| tree | a7297c81a8b6a2ee437d406ea8f7dd3fdf403667 /sys | |
| parent | 3d20b7779a51162898dad9a40c6588226d3a17fe (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netinet/ip_fw2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index 43728e60ee43..e56d6806039d 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -3483,7 +3483,7 @@ check_body: struct cfg_nat *t; struct mbuf *mcl; /* XXX - libalias duct tape */ - int ldt; + int ldt, nat_id; char *c; ldt = 0; @@ -3491,7 +3491,9 @@ check_body: retval = 0; t = ((ipfw_insn_nat *)cmd)->nat; if (t == NULL) { - t = lookup_nat(cmd->arg1); + nat_id = (cmd->arg1 == IP_FW_TABLEARG) ? + tablearg : cmd->arg1; + t = lookup_nat(nat_id); if (t == NULL) { retval = IP_FW_DENY; goto done; |
