]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
HGFS: Server packet abstraction part IX
authorVMware, Inc <>
Wed, 18 Sep 2013 03:19:54 +0000 (20:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:06:57 +0000 (22:06 -0700)
The HGFS server sets the packet's ID field as the HGFS protocol request
ID.  This should not occur and it overloads that the packet ID which
should be private to the transport channel which has nothing to do with
the HGFS request ID.  The HGFS request ID has it's own field in the HGFS
header used by the request and reply.

Remove the HGFS server modifying the packet ID.  This is currently safe,
as the clients do not receive any asynchronous replies from any HGFS
server where the packet ID in the reply is used.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/hgfsServer/hgfsServer.c

index ebe09f3b6d08d7b8911d5a177c6d2a3aeffdd16c..b8bb1539c6cdf50496273a7474d4b594792582b0 100644 (file)
@@ -3246,7 +3246,6 @@ HgfsServerSessionReceive(HgfsPacket *packet,      // IN: Hgfs Packet
       return;
    }
 
-   packet->id = input->id;
    HGFS_ASSERT_MINIMUM_OP(input->op);
    if (HGFS_ERROR_SUCCESS == status) {
       HGFS_ASSERT_INPUT(input);