Make file-local functions static
These functions are only used within their implementation files and do
not need external linkage. Mark them static.
ok tb
Remove unused BUF_reverse()
BUF_reverse() has no callers and is not part of the public API. Remove the
unused function, which also eliminates its -Wmissing-prototypes warning.
ok tb beck
Add missing internal header includes
Include the relevant internal headers in implementation files that define
internal functions.
Also make asn1_local.h and pkcs12_local.h self-contained by including their
corresponding public headers.
ok tb beck
Do not use dangling pointer in igmp multicast.
Due to different lifetime of interfaces and multicast address
structure, the pointer to router info could get invalid. Do not
cache the pointer of struct router_info in struct in_multi. Instead
always walk the list with appropriate lock.
Reported-by: syzbot+4a08786178b626883543 at syzkaller.appspotmail.com
OK gnezdo@ who provided a simmilar fix; OK claudio@