]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r313401
authorvangyzen <vangyzen@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Feb 2017 16:11:11 +0000 (16:11 +0000)
committervangyzen <vangyzen@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Feb 2017 16:11:11 +0000 (16:11 +0000)
commit9d749f0c73d4aa14cb1a267476fac8302d49454c
tree153013e288517cc1a32f229b7c796abff8d8ea81
parent732991451d03f040e5fb01b34704a94d3862a317
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@313558 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/udp_usrreq.c