svn commit: r275393 - head/sys/netipsec

Andrey V. Elsukov ae at FreeBSD.org
Tue Dec 2 05:28:41 UTC 2014


Author: ae
Date: Tue Dec  2 05:28:40 2014
New Revision: 275393
URL: https://svnweb.freebsd.org/changeset/base/275393

Log:
  Remove unneded check. No need to do m_pullup to the size that we prepended.
  
  Sponsored by:	Yandex LLC

Modified:
  head/sys/netipsec/keysock.c

Modified: head/sys/netipsec/keysock.c
==============================================================================
--- head/sys/netipsec/keysock.c	Tue Dec  2 04:20:50 2014	(r275392)
+++ head/sys/netipsec/keysock.c	Tue Dec  2 05:28:40 2014	(r275393)
@@ -148,8 +148,6 @@ key_sendup0(rp, m, promisc)
 		struct sadb_msg *pmsg;
 
 		M_PREPEND(m, sizeof(struct sadb_msg), M_NOWAIT);
-		if (m && m->m_len < sizeof(struct sadb_msg))
-			m = m_pullup(m, sizeof(struct sadb_msg));
 		if (!m) {
 			PFKEYSTAT_INC(in_nomem);
 			m_freem(m);


More information about the svn-src-head mailing list