rootless-containers / slirp4netns

User-mode networking for unprivileged network namespaces
GNU General Public License v2.0
729 stars 82 forks source link

Replace deprecated inet_ntoa with safer inet_ntop #285

Closed elmarco closed 2 years ago

elmarco commented 2 years ago

inet_ntoa() is a legacy API with MT issues. Use the recommended alternative instead. This makes some code checkers happy, and could potentially fix issues if other parts of the process were to use inet_ntoa() at the same time..