]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: avoid inet_ntoa() in favor of inet_ntop() 11208/head
authorThomas Haller <thaller@redhat.com>
Sun, 16 Dec 2018 21:02:21 +0000 (22:02 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 18 Feb 2019 12:34:22 +0000 (13:34 +0100)
commit189255d2b546bc10c280a1d7bd7def702bca1769
tree9df5297f3b45661440c22c36184c1e88d3d10261
parent072320eab04d29247d7eb1b1fc32ae10e25c020f
network: avoid inet_ntoa() in favor of inet_ntop()

inet_ntop() is not documented to be thread-safe, so it should not
be used in the DHCP library. Arguably, glibc uses a thread local
buffer, so indeed there is no problem with a suitable libc. Anyway,
just avoid it.
src/libsystemd-network/network-internal.c
src/libsystemd-network/sd-dhcp-lease.c