summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 287417c..5009346 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -714,6 +714,10 @@ ours:
hlen = ip->ip_hl << 2;
}
+ /* Try to forward the packet, but if we fail continue */
+ if (ip_tryforward(m) == NULL)
+ return;
+
#ifdef IPSEC
/*
* enforce IPsec policy checking if we are seeing last header.
OpenPOWER on IntegriCloud