Date: Sun, 31 May 2015 22:49:33 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r283849 - stable/10/sys/netipsec Message-ID: <201505312249.t4VMnX4x036140@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Sun May 31 22:49:32 2015 New Revision: 283849 URL: https://svnweb.freebsd.org/changeset/base/283849 Log: MFC r283117: Remove unneded mbuf length adjustment, M_PREPEND() already did that. PR: 139387 Modified: stable/10/sys/netipsec/keysock.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/netipsec/keysock.c ============================================================================== --- stable/10/sys/netipsec/keysock.c Sun May 31 22:44:14 2015 (r283848) +++ stable/10/sys/netipsec/keysock.c Sun May 31 22:49:32 2015 (r283849) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505312249.t4VMnX4x036140>