]> granicus.if.org Git - icinga2/commitdiff
Fail if perfdata is corrupted
authorJean Flach <jean-marcel.flach@netways.de>
Mon, 12 Sep 2016 15:44:03 +0000 (17:44 +0200)
committerJean Flach <jean-marcel.flach@netways.de>
Mon, 26 Sep 2016 15:12:37 +0000 (17:12 +0200)
Could not reproduce this myself, so no way to test

fixes #11604

plugins/check_load.cpp

index e1d68f9d060e5fe63f94767c39360ea62897f715..b9b43dd7bdf53d7b1bfa594bf291e9ba9d1c0040 100644 (file)
@@ -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)