diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-14 09:21:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:53 -0500 |
commit | f345c4281aa9df6f5ea7d0e9e61a1c7aa2c52f3e (patch) | |
tree | a21e9617200ceea48b81394ee2a989d791d039cf | |
parent | da5cbd0886a38e3e59791fd5ccd6e21f8fe9d3f2 (diff) | |
download | samba-f345c4281aa9df6f5ea7d0e9e61a1c7aa2c52f3e.tar.gz samba-f345c4281aa9df6f5ea7d0e9e61a1c7aa2c52f3e.tar.bz2 samba-f345c4281aa9df6f5ea7d0e9e61a1c7aa2c52f3e.zip |
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)
-rw-r--r-- | source4/torture/rpc/epmapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |