This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "An utility library for Open Source Mobile Communications".
The branch, master has been updated
via 91cfda81b57ae62ddaf465093e847875c8b1d932 (commit)
from 49382720f8d5b4e270fae197156cd69292d42ffc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cgit.osmocom.org/libosmocore/commit/?id=91cfda81b57ae62ddaf465093e84…
commit 91cfda81b57ae62ddaf465093e847875c8b1d932
Author: Philipp Maier <pmaier(a)sysmocom.de>
Date: Mon Jan 22 16:56:27 2018 +0100
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
-----------------------------------------------------------------------
Summary of changes:
src/socket.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
An utility library for Open Source Mobile Communications