aboutsummaryrefslogtreecommitdiff
path: root/sys/netipsec
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2004-09-26 02:01:27 +0000
committerSam Leffler <sam@FreeBSD.org>2004-09-26 02:01:27 +0000
commit6f9bd550ccc78cffa8d3ec2f7644ab6724568541 (patch)
tree1b595c27a5f7707cee2b24575ed81c7631990e33 /sys/netipsec
parent714aa5b93918618ee233b3ff2ceb587c46712d19 (diff)
downloadsrc-6f9bd550ccc78cffa8d3ec2f7644ab6724568541.tar.gz
src-6f9bd550ccc78cffa8d3ec2f7644ab6724568541.zip
Correct handling of SADB_UPDATE and SADB_ADD requests. key_align may split
the mbuf due to use of m_pulldown. Discarding the result because of this does not make sense as no subsequent code depends on the entire msg being linearized (only the individual pieces). It's likely something else is wrong here but for now this appears to get things back to a working state. Submitted by: Roselyn Lee
Notes
Notes: svn path=/head/; revision=135801
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/key.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index 2d34bc04544e..c1f7d4eae243 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -6671,11 +6671,6 @@ key_parse(m, so)
if (error)
return error;
- if (m->m_next) { /*XXX*/
- m_freem(m);
- return ENOBUFS;
- }
-
msg = mh.msg;
/* check SA type */