r15970: add a more verbose comment to tridge's fix for bigendian hosts.
authorStefan Metzmacher <metze@samba.org>
Tue, 30 May 2006 20:23:55 +0000 (20:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:45 +0000 (14:08 -0500)
tridge: I'm fine with this fix

metze
(This used to be commit f38b042ded6ec9b243c15d7710261708f208d289)

source4/ntvfs/ipc/vfs_ipc.c

index 31233968e77ce0bea2f756efdd655fb7962d9b95..e93e32f4e4bd97bf05f8af0b2b6bba983c753f35 100644 (file)
@@ -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);