git: net: Fix panic in the rt_addrinfo_print() debug function
Aaron LI
aly at crater.dragonflybsd.org
Wed Mar 20 08:33:50 PDT 2024
commit 2b2893d626c5cc4b4fe5986ebd4923dc4f40eede
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/2b2893d626c5cc4b4fe5986ebd4923dc4f40eede
--
DragonFly BSD source repository
More information about the Commits
mailing list