Remove unneded mbuf length adjustment, M_PREPEND() already did that.
PR: 139387 MFC after: 1 week
This commit is contained in:
parent
62f42cf8ee
commit
4ec5fcbe09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283117
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user