]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Send the proper reply size back to the VMX.
authorVMware, Inc <>
Thu, 22 Dec 2011 00:48:20 +0000 (16:48 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 22 Dec 2011 00:48:20 +0000 (16:48 -0800)
In the present tools code, for few commands (like Hgfs packets),
the reply size is not sent correctly back to the VMX. An extra 4 bytes
is added to the reply size. We really don't require the extra 4 bytes.
Modified the code to get rid of the extra 4 bytes.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/services/plugins/vix/foundryToolsDaemon.c

index f5bddc8e4305214f9b3651c47632e5e11804c570..b721994e559685f92e742c3338ad7ca85e3725e9 100644 (file)
@@ -1132,7 +1132,7 @@ abort:
    if ((NULL != requestMsg)
          && (requestMsg->commonHeader.commonFlags & VIX_COMMAND_GUEST_RETURNS_BINARY)) {
       *(destPtr++) = '#';
-      data->resultLen = destPtr - tcloBuffer + sizeof '#' + resultValueLength;
+      data->resultLen = destPtr - tcloBuffer + resultValueLength;
    }
 
    /*