diff options
author | ae <ae@FreeBSD.org> | 2014-12-02 05:28:40 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2014-12-02 05:28:40 +0000 |
commit | 4473ed457ddf080f747a8100a48267cc71cfd057 (patch) | |
tree | a21cc5d9e26ba6de57ed92b76b144c70b96a3212 /sys/netipsec/keysock.c | |
parent | b82eb2f5d9fa4d0676e71863fa3931a1b8ced3dc (diff) | |
download | FreeBSD-src-4473ed457ddf080f747a8100a48267cc71cfd057.zip FreeBSD-src-4473ed457ddf080f747a8100a48267cc71cfd057.tar.gz |
Remove unneded check. No need to do m_pullup to the size that we prepended.
Sponsored by: Yandex LLC
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 f642674..45b0425 100644 --- a/sys/netipsec/keysock.c +++ b/sys/netipsec/keysock.c @@ -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); |