mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Eliminate use of M_EXT in IP6_EXTHDR_CHECK() by trimming a redundant
'if'/'else' case: it matches the simple 'else' case that follows. This reduces awareness of external-storage mechanics outside of the mbuf allocator. Reviewed by: bz MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D900
This commit is contained in:
parent
260ac36209
commit
6c572040c6
1 changed files with 0 additions and 6 deletions
|
|
@ -277,12 +277,6 @@ do { \
|
|||
(((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \
|
||||
IP6STAT_INC(ip6s_exthdrtoolong); \
|
||||
return ret; \
|
||||
} else if ((m)->m_flags & M_EXT) { \
|
||||
if ((m)->m_len < (off) + (hlen)) { \
|
||||
IP6STAT_INC(ip6s_exthdrtoolong); \
|
||||
m_freem(m); \
|
||||
return ret; \
|
||||
} \
|
||||
} else { \
|
||||
if ((m)->m_len < (off) + (hlen)) { \
|
||||
IP6STAT_INC(ip6s_exthdrtoolong); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue