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
@ -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…
x
Reference in New Issue
Block a user