mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 07:35:06 -05:00
Fix resolving IP addresses into names on 64-bit big-endian machines
This commit is contained in:
@@ -65,7 +65,7 @@ DNS_IPAddress2Name(unsigned long ip_addr)
|
|||||||
struct hostent *host;
|
struct hostent *host;
|
||||||
static char buffer[16];
|
static char buffer[16];
|
||||||
unsigned int a, b, c, d;
|
unsigned int a, b, c, d;
|
||||||
unsigned long addr;
|
uint32_t addr;
|
||||||
|
|
||||||
addr = htonl(ip_addr);
|
addr = htonl(ip_addr);
|
||||||
if (addr == 0UL) {
|
if (addr == 0UL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user