summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-04-17 23:11:56 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2016-04-17 23:17:13 -0500
commit971ca0532caaf8713dbf3618e528f392f7cde4a8 (patch)
tree97c30b264e6660594b0491eb8e99758503218396
parent05adf0a13cd1325ba3bf55be2e1a760d9eea3d8b (diff)
downloadFreeBSD-src-971ca0532caaf8713dbf3618e528f392f7cde4a8.zip
FreeBSD-src-971ca0532caaf8713dbf3618e528f392f7cde4a8.tar.gz
Fix a bug in divert.RELENG_10.diff.RELENG_2_3_0
Found during the patch reviews for 2.4. (cherry picked from commit ea9ba1a51b165fe4540662a900bb800f501bdf74)
-rw-r--r--sys/netpfil/pf/pf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
index ebda220..280c78a 100644
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -6549,7 +6549,7 @@ done:
continueprocessing:
if (action == PF_PASS && r->divert.port && ip_divert_ptr != NULL &&
- !PACKET_LOOPED(&pd)) {
+ !PACKET_LOOPED(pd.pf_mtag)) {
if (!r->spare2 ||
(s && s->packets[dir == PF_OUT] <= r->spare2)) {
ipfwtag = m_tag_alloc(MTAG_IPFW_RULE, 0,
OpenPOWER on IntegriCloud