Skip to content
Snippets Groups Projects
Commit 2f83c053 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use inet_addrtop to convert socket addresses to strings to handle endianness

Socket addresses are stored in network byte order (big endian) and this
sprintf() logic here assumed little endian.

This was a regression introduced in either commit 29b93c32 or
commit db8bb221 (in the past 2 weeks) when we stopped using (some)
of the deprecated IP address/resolution functions and fixed the socket address
storage to always be in network byte order (as is the norm).

This should fix the issue recently reported in IRC by BrokenMind.
parent 98f83884
No related branches found
No related tags found
No related merge requests found
Pipeline #8370 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment