From f345c4281aa9df6f5ea7d0e9e61a1c7aa2c52f3e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 14 Oct 2004 09:21:12 +0000 Subject: 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 used to be commit 45508b85dabf8aa66bff9aeebf99c1faf3d475ec) --- source4/torture/rpc/epmapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture/rpc/epmapper.c') diff --git a/source4/torture/rpc/epmapper.c b/source4/torture/rpc/epmapper.c index 1aff06007f..c2450c6fbf 100644 --- a/source4/torture/rpc/epmapper.c +++ b/source4/torture/rpc/epmapper.c @@ -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; -- cgit