git: DragonFly_RELEASE_6_4 net: Fix panic in the rt_addrinfo_print() debug function

Aaron LI aly at crater.dragonflybsd.org
Thu Mar 21 20:41:23 PDT 2024


commit 4149e9d96024efbbec7f018cbe0f1f40c5138c96
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Mar 19 18:36:33 2024 +0800

    net: Fix panic in the rt_addrinfo_print() debug function
    
    The 'rti_addrs' member is a bitmask of RTA_* values, not a count value,
    so the rt_addrinfo_print() debug function would just panic.
    
    Use RTAX_MAX instead to fix this bug.  Meanwhile, add brief comments to
    'rti_addrs' and 'rti_flags' members.

Summary of changes:
 sys/net/route.c | 2 +-
 sys/net/route.h | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4149e9d96024efbbec7f018cbe0f1f40c5138c96


-- 
DragonFly BSD source repository


More information about the Commits mailing list