From: dlg Date: Thu, 27 May 2021 03:46:15 +0000 (+0000) Subject: ajacoutot says i missed copying some bits from bridge for divert-to. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d103d05a353049170f948a87510a7cc0a0150362;p=openbsd ajacoutot says i missed copying some bits from bridge for divert-to. --- diff --git a/sys/net/if_tpmr.c b/sys/net/if_tpmr.c index 753379a446b..5fcb0b0e006 100644 --- a/sys/net/if_tpmr.c +++ b/sys/net/if_tpmr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tpmr.c,v 1.25 2021/05/26 06:44:28 dlg Exp $ */ +/* $OpenBSD: if_tpmr.c,v 1.26 2021/05/27 03:46:15 dlg Exp $ */ /* * Copyright (c) 2019 The University of Queensland @@ -276,6 +276,8 @@ tpmr_pf(struct ifnet *ifp0, int dir, struct mbuf *m) return (NULL); if (dir == PF_IN && ISSET(m->m_pkthdr.pf.flags, PF_TAG_DIVERTED)) { + pf_mbuf_unlink_state_key(m); + pf_mbuf_unlink_inpcb(m); (*ip_input)(ifp0, m); return (NULL); }