From: John Wolfe Date: Tue, 4 May 2021 02:39:40 +0000 (-0700) Subject: Tools gdp plugin updates. X-Git-Tag: stable-11.3.0~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3db034717c4bd77ffcf4f6ac2682096d360e2e0;p=thirdparty%2Fopen-vm-tools.git Tools gdp plugin updates. --- diff --git a/open-vm-tools/services/plugins/gdp/gdpPlugin.c b/open-vm-tools/services/plugins/gdp/gdpPlugin.c index 6ef667464..2bba2937e 100644 --- a/open-vm-tools/services/plugins/gdp/gdpPlugin.c +++ b/open-vm-tools/services/plugins/gdp/gdpPlugin.c @@ -1910,6 +1910,7 @@ GdpJsonIsPublishResult(const char *json, // IN } else if (GdpJsonIsTokenOfKey(json, &tokens[index], GDP_RESULT_DIAGNOSIS)) { index++; + ASSERT(diagnosis == NULL); tokenLen = tokens[index].end - tokens[index].start; diagnosis = g_strndup(json + tokens[index].start, tokenLen); } else if (GdpJsonIsTokenOfKey(json, &tokens[index],