Skip to content
  • Rob Swindell's avatar
    2f83c053
    Use inet_addrtop to convert socket addresses to strings to handle endianness · 2f83c053
    Rob Swindell authored
    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.
    2f83c053
    Use inet_addrtop to convert socket addresses to strings to handle endianness
    Rob Swindell authored
    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.
Loading