From 0cd74db89b7c7ca5bface8b05ae8263c0a54217b Mon Sep 17 00:00:00 2001 From: gnn Date: Sun, 1 Jul 2007 11:41:27 +0000 Subject: Commit IPv6 support for FAST_IPSEC to the tree. This commit includes only the kernel files, the rest of the files will follow in a second commit. Reviewed by: bz Approved by: re Supported by: Secure Computing --- sys/netipsec/key.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'sys/netipsec/key.c') diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index cb0284c..5dfc32f 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -2145,8 +2145,6 @@ key_spddelete2(so, m, mhp) /* create new sadb_msg to reply. */ len = PFKEY_ALIGN8(sizeof(struct sadb_msg)); - if (len > MCLBYTES) - return key_senderror(so, m, ENOBUFS); MGETHDR(n, M_DONTWAIT, MT_DATA); if (n && len > MHLEN) { MCLGET(n, M_DONTWAIT); @@ -4518,8 +4516,6 @@ key_getspi(so, m, mhp) /* create new sadb_msg to reply. */ len = PFKEY_ALIGN8(sizeof(struct sadb_msg)) + PFKEY_ALIGN8(sizeof(struct sadb_sa)); - if (len > MCLBYTES) - return key_senderror(so, m, ENOBUFS); MGETHDR(n, M_DONTWAIT, MT_DATA); if (len > MHLEN) { @@ -7299,7 +7295,6 @@ key_setkey(struct seckey *src, u_int16_t exttype) return NULL; len = PFKEY_ALIGN8(sizeof(struct sadb_key) + _KEYLEN(src)); - m = key_alloc_mbuf(len); if (m == NULL) return NULL; -- cgit v1.1