Remove unneded check. No need to do m_pullup to the size that we prepended.
Sponsored by: Yandex LLC
This commit is contained in:
parent
2d957916ef
commit
bd766f3425
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275393
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user