summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/keysock.c
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2015-05-31 22:49:32 +0000
committerae <ae@FreeBSD.org>2015-05-31 22:49:32 +0000
commite8c339bab500551d3ae7bc2fb608a140a1a0528d (patch)
tree23d7bb7b3aab58e545abb2ab6e8bc8ef1afc00a8 /sys/netipsec/keysock.c
parent8017091a95eef37588cc8639f5ea20045e752d79 (diff)
downloadFreeBSD-src-e8c339bab500551d3ae7bc2fb608a140a1a0528d.zip
FreeBSD-src-e8c339bab500551d3ae7bc2fb608a140a1a0528d.tar.gz
MFC r283117:
Remove unneded mbuf length adjustment, M_PREPEND() already did that. PR: 139387
Diffstat (limited to 'sys/netipsec/keysock.c')
-rw-r--r--sys/netipsec/keysock.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netipsec/keysock.c b/sys/netipsec/keysock.c
index 5fc5998..c143954 100644
--- a/sys/netipsec/keysock.c
+++ b/sys/netipsec/keysock.c
@@ -153,8 +153,6 @@ key_sendup0(rp, m, promisc)
PFKEYSTAT_INC(in_nomem);
return (ENOBUFS);
}
- m->m_pkthdr.len += sizeof(*pmsg); /* XXX: is this correct? */
-
pmsg = mtod(m, struct sadb_msg *);
bzero(pmsg, sizeof(*pmsg));
pmsg->sadb_msg_version = PF_KEY_V2;
OpenPOWER on IntegriCloud