Fix bug in r308972 that leads to panic when non-compressed IPComp
packet is received. Reported by: Denis Ahrens <denis h3q com> MFC after: 3 days
This commit is contained in:
parent
94697f90d6
commit
8291fb89cf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316133
@ -1041,9 +1041,9 @@ key_allocsa_tunnel(union sockaddr_union *src, union sockaddr_union *dst,
|
||||
continue;
|
||||
if (proto != sah->saidx.proto)
|
||||
continue;
|
||||
if (key_sockaddrcmp(&src->sa, &sav->sah->saidx.src.sa, 0) != 0)
|
||||
if (key_sockaddrcmp(&src->sa, &sah->saidx.src.sa, 0) != 0)
|
||||
continue;
|
||||
if (key_sockaddrcmp(&dst->sa, &sav->sah->saidx.dst.sa, 0) != 0)
|
||||
if (key_sockaddrcmp(&dst->sa, &sah->saidx.dst.sa, 0) != 0)
|
||||
continue;
|
||||
/* XXXAE: is key_preferred_oldsa reasonably?*/
|
||||
if (V_key_preferred_oldsa)
|
||||
|
Loading…
Reference in New Issue
Block a user