Page MenuHomeFreeBSD

D33240.diff
No OneTemporary

D33240.diff

diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -1739,9 +1739,12 @@
if (m->m_flags & (M_BCAST|M_MCAST))
return (0);
+ if (sc == NULL)
+ return (0);
+
PFSYNC_LOCK(sc);
- if (sc == NULL || !(sc->sc_ifp->if_flags & IFF_DRV_RUNNING) ||
+ if (!(sc->sc_ifp->if_flags & IFF_DRV_RUNNING) ||
!(sc->sc_flags & PFSYNCF_DEFER)) {
PFSYNC_UNLOCK(sc);
return (0);

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 2:40 PM (18 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15794716
Default Alt Text
D33240.diff (464 B)

Event Timeline