diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2023-11-12 16:10:47 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2023-11-12 16:10:47 +0000 |
commit | 0414652b1de8a5cf43714add736ea0d7f96445f0 (patch) | |
tree | 1d146b75a3e0b6019d5e50beda11f6b27028d7f8 /sbin/Makefile.inc | |
parent | da75bd6d2e3743f414a6e28b8f8bf0c8a70f6da4 (diff) |
Do not modify route info sockaddr in rtm_xaddrs().
The rti_info array is used to describe routes that should be found
by lookup. Modifying the addreses in it is not a good idea. There
were places where rtm_xaddrs() tried to fix the address family
instead of validating it. Replace the modification with a check
and error out with EAFNOSUPPORT on failure. Route labels always
have AF_UNSPEC and the other types are not used anyway.
OK kn@
Diffstat (limited to 'sbin/Makefile.inc')
0 files changed, 0 insertions, 0 deletions