From 4ec5fcbe09a494aeff0ca06adcda55ea6d330064 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Tue, 19 May 2015 17:14:27 +0000 Subject: [PATCH] Remove unneded mbuf length adjustment, M_PREPEND() already did that. PR: 139387 MFC after: 1 week --- sys/netipsec/keysock.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/netipsec/keysock.c b/sys/netipsec/keysock.c index 605d79c49a99..4d1295764b6e 100644 --- a/sys/netipsec/keysock.c +++ b/sys/netipsec/keysock.c @@ -149,8 +149,6 @@ key_sendup0(struct rawcb *rp, struct mbuf *m, int 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;