Fix a double-free in the 'hlen > m->m_len' sanity check.
Bug report by: <james@towardex.com> MFC after: 2 weeks
This commit is contained in:
parent
140dd49673
commit
5e7b233055
@ -221,7 +221,7 @@ ip_fastforward(struct mbuf *m)
|
||||
if (hlen > m->m_len) {
|
||||
if ((m = m_pullup(m, hlen)) == 0) {
|
||||
ipstat.ips_badhlen++;
|
||||
goto drop;
|
||||
return 1;
|
||||
}
|
||||
ip = mtod(m, struct ip *);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user