diff options
author | ae <ae@FreeBSD.org> | 2015-05-19 17:14:27 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2015-05-19 17:14:27 +0000 |
commit | 57bd5e270493fe174830ec5767ec2846b20749a4 (patch) | |
tree | d014cb1fb9991c109281a975d3abe5c42698f86f /sys/netipsec/keysock.c | |
parent | d1f07a4ecc056f9707e7d7d31619d9d2a4cc5628 (diff) | |
download | FreeBSD-src-57bd5e270493fe174830ec5767ec2846b20749a4.zip FreeBSD-src-57bd5e270493fe174830ec5767ec2846b20749a4.tar.gz |
Remove unneded mbuf length adjustment, M_PREPEND() already did that.
PR: 139387
MFC after: 1 week
Diffstat (limited to 'sys/netipsec/keysock.c')
-rw-r--r-- | sys/netipsec/keysock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netipsec/keysock.c b/sys/netipsec/keysock.c index 605d79c..4d12957 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; |