From b0bcd8a2010c8426f45a3d3c1f9911754f9e2936 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 30 May 2006 20:23:55 +0000 Subject: r15970: add a more verbose comment to tridge's fix for bigendian hosts. tridge: I'm fine with this fix metze (This used to be commit f38b042ded6ec9b243c15d7710261708f208d289) --- source4/ntvfs/ipc/vfs_ipc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c index 31233968e7..e93e32f4e4 100644 --- a/source4/ntvfs/ipc/vfs_ipc.c +++ b/source4/ntvfs/ipc/vfs_ipc.c @@ -660,7 +660,12 @@ static NTSTATUS ipc_dcerpc_cmd(struct ntvfs_module_context *ntvfs, DATA_BLOB fnum_key; uint16_t fnum; - /* the fnum is in setup[1], a 16 bit value */ + /* + * the fnum is in setup[1], a 16 bit value + * the setup[*] values are already in host byteorder + * but ntvfs_handle_search_by_wire_key() expects + * network byteorder + */ SSVAL(&fnum, 0, trans->in.setup[1]); fnum_key = data_blob_const(&fnum, 2); -- cgit