From: VMware, Inc <> Date: Mon, 20 Dec 2010 21:39:35 +0000 (-0800) Subject: Fix return code of HGFS channel activation function. X-Git-Tag: 2010.12.19-339835~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c146117151356bfaaeff6d7af5f955ded7e275;p=thirdparty%2Fopen-vm-tools.git Fix return code of HGFS channel activation function. HgfsChannelActivateChannel should return TRUE if channel has already been initialized. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/hgfsServerManagerGuest/hgfsChannelGuest.c b/open-vm-tools/lib/hgfsServerManagerGuest/hgfsChannelGuest.c index 3d250c324..4ad6a5bff 100644 --- a/open-vm-tools/lib/hgfsServerManagerGuest/hgfsChannelGuest.c +++ b/open-vm-tools/lib/hgfsServerManagerGuest/hgfsChannelGuest.c @@ -143,7 +143,7 @@ HgfsChannelActivateChannel(HgfsChannelData *channel, // IN/OUT: HgfsServerSessionCallbacks *serverCBTable, // IN: server callbacks HgfsServerMgrData *mgrData) // IN: mgrData { - Bool success = FALSE; + Bool success = (channel->connection != NULL); struct HgfsGuestConn *connData = NULL; if (channel->connection == NULL &&