Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177424429
D61320.1794349383.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
624 B
Referenced Files
None
Subscribers
None
D61320.1794349383.diff
View Options
diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c
--- a/sys/net/if_fwsubr.c
+++ b/sys/net/if_fwsubr.c
@@ -519,10 +519,12 @@
* appropriately. We de-encapsulate the IP packet and pass it
* up the line after handling link-level fragmentation.
*/
- if (m->m_pkthdr.len < sizeof(uint32_t)) {
+ if (__predict_false(m->m_pkthdr.len < (int)sizeof(uint32_t))) {
if_printf(ifp, "discarding frame without "
- "encapsulation header (len %u pkt len %u)\n",
+ "encapsulation header (len %d pkt len %d)\n",
m->m_len, m->m_pkthdr.len);
+ m_freem(m);
+ return;
}
m = m_pullup(m, sizeof(uint32_t));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 10, 10:23 PM (27 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41616704
Default Alt Text
D61320.1794349383.diff (624 B)
Attached To
Mode
D61320: if_firewire: Be more robust while checking the frame size
Attached
Detach File
Event Timeline