From: VMware, Inc <> Date: Thu, 22 Dec 2011 00:48:20 +0000 (-0800) Subject: Send the proper reply size back to the VMX. X-Git-Tag: 2011.12.20-562307~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd37ea3dbefab741a3ef881fb70e824b272ea91d;p=thirdparty%2Fopen-vm-tools.git Send the proper reply size back to the VMX. 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 --- diff --git a/open-vm-tools/services/plugins/vix/foundryToolsDaemon.c b/open-vm-tools/services/plugins/vix/foundryToolsDaemon.c index f5bddc8e4..b721994e5 100644 --- a/open-vm-tools/services/plugins/vix/foundryToolsDaemon.c +++ b/open-vm-tools/services/plugins/vix/foundryToolsDaemon.c @@ -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; } /*