git: net: Fix my mistake in route_output()

Aaron LI aly at crater.dragonflybsd.org
Mon Jan 1 18:22:13 PST 2024


commit 8b679086019f3e6d0d422b8021da5ca23b3f821a
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Jan 1 21:09:16 2024 +0800

    net: Fix my mistake in route_output()
    
    The 'rtm' is created in this function and its message length (rtm_msglen)
    can actually be smaller than the original mbuf length (m_pkthdr.len), so
    the original m_adj() must be restored.  It was erroneously removed in
    my previous commit 44647b48cc48ca54dc839a0c8652cd4960416c2b.  Fix it.

Summary of changes:
 sys/net/rtsock.c | 2 ++
 1 file changed, 2 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8b679086019f3e6d0d422b8021da5ca23b3f821a


-- 
DragonFly BSD source repository


More information about the Commits mailing list