diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2017-02-10 05:14:19 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2017-02-10 05:14:19 +0000 |
commit | 5c4570910d8ef05fb25921789683e56a2a6382ad (patch) | |
tree | e163b5a07ddb1ecd18851bccc89d00f781dead26 /contrib/netbsd-tests/lib/libc/stdlib/t_strtoi.c | |
parent | a01a5f29ed23a32ae0fee7fd12627781bb90778b (diff) | |
download | FreeBSD-src-5c4570910d8ef05fb25921789683e56a2a6382ad.zip FreeBSD-src-5c4570910d8ef05fb25921789683e56a2a6382ad.tar.gz |
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
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/t_strtoi.c')
0 files changed, 0 insertions, 0 deletions