MFC r275394:
Remove unneded check. No need to do m_pullup to the size that we prepended. Sponsored by: Yandex LLC
This commit is contained in:
parent
257146dad4
commit
3e533b7379
@ -499,8 +499,6 @@ stf_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
|
||||
}
|
||||
|
||||
M_PREPEND(m, sizeof(struct ip), M_NOWAIT);
|
||||
if (m && m->m_len < sizeof(struct ip))
|
||||
m = m_pullup(m, sizeof(struct ip));
|
||||
if (m == NULL) {
|
||||
ifa_free(&ia6->ia_ifa);
|
||||
ifp->if_oerrors++;
|
||||
|
@ -366,8 +366,6 @@ icmp6_error(struct mbuf *m, int type, int code, int param)
|
||||
|
||||
preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
|
||||
M_PREPEND(m, preplen, M_NOWAIT); /* FIB is also copied over. */
|
||||
if (m && m->m_len < preplen)
|
||||
m = m_pullup(m, preplen);
|
||||
if (m == NULL) {
|
||||
nd6log((LOG_DEBUG, "ENOBUFS in icmp6_error %d\n", __LINE__));
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user