summaryrefslogtreecommitdiffstats
path: root/tests/write_queue
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-01-22 16:56:27 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2018-01-22 17:04:29 +0100
commit91cfda81b57ae62ddaf465093e847875c8b1d932 (patch)
tree8879d39dbc28cc5390174ae5b3603f3d45c5f811 /tests/write_queue
parent49382720f8d5b4e270fae197156cd69292d42ffc (diff)
socket: use inet_ntop() instead of inet_ntoa() in osmo_sock_local_ip()
The function inet_ntoa() stores its result in a static buffer and returns the pointer. When inet_ntoa() is called subsequently it overwrite the content of its static buffer with the new result. Since we osmo_sock_local_ip() is a library function we should use the more safe variant inet_ntop() in order to prevent unintentionally overwriting data that the caller might still need. Such an error would be hard to find. - Use the more safe inet_ntop() inestead of inet_ntoa() Change-Id: I9852b57736432032542bd96b6fdd4a2f08fc1f64
Diffstat (limited to 'tests/write_queue')
0 files changed, 0 insertions, 0 deletions