diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2017-02-10 16:11:11 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2017-02-10 16:11:11 +0000 |
commit | 58b22c1b2c60ef4d8f1b33b394a9b44e04507ca1 (patch) | |
tree | 153013e288517cc1a32f229b7c796abff8d8ea81 /contrib/libarchive/libarchive/archive_write_set_format_pax.c | |
parent | 24a80a3173e1990c42b9f5db56d2736189decc2f (diff) | |
download | FreeBSD-src-58b22c1b2c60ef4d8f1b33b394a9b44e04507ca1.zip FreeBSD-src-58b22c1b2c60ef4d8f1b33b394a9b44e04507ca1.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/libarchive/libarchive/archive_write_set_format_pax.c')
0 files changed, 0 insertions, 0 deletions