svn commit: samba r2969 - in branches/SAMBA_4_0/source/torture/rpc: .

tridge at samba.org tridge at samba.org
Thu Oct 14 09:21:13 GMT 2004


Author: tridge
Date: 2004-10-14 09:21:12 +0000 (Thu, 14 Oct 2004)
New Revision: 2969

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/torture/rpc&rev=2969&nolog=1

Log:
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


Modified:
   branches/SAMBA_4_0/source/torture/rpc/epmapper.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/epmapper.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/epmapper.c	2004-10-14 09:07:41 UTC (rev 2968)
+++ branches/SAMBA_4_0/source/torture/rpc/epmapper.c	2004-10-14 09:21:12 UTC (rev 2969)
@@ -64,7 +64,7 @@
 			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;



More information about the samba-cvs mailing list