Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107397073
D33240.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
464 B
Referenced Files
None
Subscribers
None
D33240.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D33240: pfsync: NULL check sc before using it
Attached
Detach File
Event Timeline
Log In to Comment