Date: Sat, 1 Apr 2017 10:02:36 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r316353 - stable/11/sys/netipsec Message-ID: <201704011002.v31A2asu075687@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Sat Apr 1 10:02:36 2017 New Revision: 316353 URL: https://svnweb.freebsd.org/changeset/base/316353 Log: MFC r316133: Fix bug in r308972 that leads to panic when non-compressed IPComp packet is received. Reported by: Denis Ahrens <denis h3q com> Modified: stable/11/sys/netipsec/key.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/netipsec/key.c ============================================================================== --- stable/11/sys/netipsec/key.c Sat Apr 1 09:37:15 2017 (r316352) +++ stable/11/sys/netipsec/key.c Sat Apr 1 10:02:36 2017 (r316353) @@ -1041,9 +1041,9 @@ key_allocsa_tunnel(union sockaddr_union 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704011002.v31A2asu075687>