HomeFreeBSD

MFC r313401

Description

MFC r313401

Fix garbage IP addresses in UDP log_in_vain messages

If multiple threads emit a UDP log_in_vain message concurrently,
or indeed call inet_ntoa() for any other reason,
the IP addresses could be garbage due to concurrent usage of a
single string buffer inside inet_ntoa(). Use inet_ntoa_r() with
two stack buffers instead.

Relnotes: yes
Sponsored by: Dell EMC

Details

Provenance
vangyzenAuthored on
Parents
rS313522: MFC r286536:
Branches
Unknown
Tags
Unknown