Remove unneded mbuf length adjustment, M_PREPEND() already did that.

PR:		139387
MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2015-05-19 17:14:27 +00:00
parent 62f42cf8ee
commit 4ec5fcbe09
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283117

View File

@ -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;