From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:44 +0000 (-0700) Subject: Don't try to use broken RPC channel X-Git-Tag: stable-10.2.0~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=998f79aaf08b7d1f94693441a71c7f8dba4be34c;p=thirdparty%2Fopen-vm-tools.git Don't try to use broken RPC channel Make sure RPC channel exists before trying to use it. --- diff --git a/open-vm-tools/services/vmtoolsd/mainLoop.c b/open-vm-tools/services/vmtoolsd/mainLoop.c index 096831c6a..79c5df531 100644 --- a/open-vm-tools/services/vmtoolsd/mainLoop.c +++ b/open-vm-tools/services/vmtoolsd/mainLoop.c @@ -192,9 +192,6 @@ ToolsCoreReportVersionData(ToolsServiceState *state) char *value; const static char cmdPrefix[] = "info-set guestinfo.vmtools."; - ASSERT(state); - ASSERT(state->ctx.rpc); - /* * These values are documented with specific formats. Do not change * the formats, as client code can depend on them. @@ -287,7 +284,9 @@ ToolsCoreRunLoop(ToolsServiceState *state) } /* Report version info as guest Vars */ - ToolsCoreReportVersionData(state); + if (state->ctx.rpc) { + ToolsCoreReportVersionData(state); + } if (!ToolsCore_LoadPlugins(state)) { return 1;