mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
m_pulldown() may reallocate n. Update the oip pointer after the
m_pulldown() call. MFC after: 2 weeks Sponsored by: Netflix
This commit is contained in:
parent
e74f411d47
commit
54e675342b
1 changed files with 1 additions and 0 deletions
|
|
@ -264,6 +264,7 @@ icmp_error(struct mbuf *n, int type, int code, uint32_t dest, int mtu)
|
|||
if (n->m_len < oiphlen + tcphlen &&
|
||||
(n = m_pullup(n, oiphlen + tcphlen)) == NULL)
|
||||
goto freeit;
|
||||
oip = mtod(n, struct ip *);
|
||||
icmpelen = max(tcphlen, min(V_icmp_quotelen,
|
||||
ntohs(oip->ip_len) - oiphlen));
|
||||
} else if (oip->ip_p == IPPROTO_SCTP) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue