From 0d71be774e143c913c4f4e5e76463deb4b676be1 Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Mon, 12 Sep 2016 17:44:03 +0200 Subject: [PATCH] Fail if perfdata is corrupted Could not reproduce this myself, so no way to test fixes #11604 --- plugins/check_load.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/check_load.cpp b/plugins/check_load.cpp index e1d68f9d0..b9b43dd7b 100644 --- a/plugins/check_load.cpp +++ b/plugins/check_load.cpp @@ -236,6 +236,10 @@ INT check_load(printInfoStruct& printInfo) if (debug) std::wcout << L"Recieved Value of " << DisplayValue.doubleValue << L" (idle)" << '\n'; printInfo.load = 100.0 - DisplayValue.doubleValue; + } else { + if (debug) + std::wcout << L"Received data was not valid\n"; + goto die; } if (debug)