summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_fw.c')
-rw-r--r--sys/netinet/ip_fw.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index ca112d5..1aefb7a 100644
--- a/sys/netinet/ip_fw.c
+++ b/sys/netinet/ip_fw.c
@@ -1445,10 +1445,8 @@ dropit:
/*
* Finally, drop the packet.
*/
- if (*m) {
- m_freem(*m);
- *m = NULL;
- }
+ if (*m)
+ return(IP_FW_PORT_DENY_FLAG);
return(0);
#undef BRIDGED
}
OpenPOWER on IntegriCloud