mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
r2969: inet_ntoa() takes an address in network byte order, so now that we
parse the RHS as IDL, we need to use htonl() to convert back to network byte order before we can display the IP
This commit is contained in:
parent
cc00f9b6b8
commit
45508b85da
@ -64,7 +64,7 @@ static void display_tower(TALLOC_CTX *mem_ctx, struct epm_towers *twr)
|
||||
printf(" IP:");
|
||||
{
|
||||
struct in_addr in;
|
||||
in.s_addr = rhs->ip.address;
|
||||
in.s_addr = htonl(rhs->ip.address);
|
||||
printf("%s", inet_ntoa(in));
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user