reported from VANHULLEBUS Yvan [remote kernel crash may result]
Submitted by: itojun Obtained from: KAME MFC after: 1 day
This commit is contained in:
parent
8413f1ccdd
commit
d34fd3c7e0
@ -1007,7 +1007,7 @@ ipsec4_get_ulp(m, spidx, needport)
|
||||
uh.uh_dport;
|
||||
return;
|
||||
case IPPROTO_AH:
|
||||
if (m->m_pkthdr.len > off + sizeof(ip6e))
|
||||
if (off + sizeof(ip6e) > m->m_pkthdr.len)
|
||||
return;
|
||||
m_copydata(m, off, sizeof(ip6e), (caddr_t)&ip6e);
|
||||
off += (ip6e.ip6e_len + 2) << 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user