mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Unbreak FAST_IPSEC build on 64 bit archs with INVARIANTS.
Approved by: sam
This commit is contained in:
parent
08766bdf18
commit
2bf11a9911
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127972
@ -1316,7 +1316,7 @@ key_msg2sp(xpl0, len, error)
|
|||||||
struct secpolicy *newsp;
|
struct secpolicy *newsp;
|
||||||
|
|
||||||
IPSEC_ASSERT(xpl0 != NULL, ("null xpl0"));
|
IPSEC_ASSERT(xpl0 != NULL, ("null xpl0"));
|
||||||
IPSEC_ASSERT(len >= sizeof(*xpl0), ("policy too short: %u", len));
|
IPSEC_ASSERT(len >= sizeof(*xpl0), ("policy too short: %zu", len));
|
||||||
|
|
||||||
if (len != PFKEY_EXTLEN(xpl0)) {
|
if (len != PFKEY_EXTLEN(xpl0)) {
|
||||||
ipseclog((LOG_DEBUG, "%s: Invalid msg length.\n", __func__));
|
ipseclog((LOG_DEBUG, "%s: Invalid msg length.\n", __func__));
|
||||||
|
Loading…
Reference in New Issue
Block a user