summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/app/updater.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index bccf6770d857..183ad8d9c8ae 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -314,6 +314,11 @@ update_info parse_response(const std::string& rResponse)
}
auto aRootKeys = aDocumentRoot.keys();
+ if (std::find(aRootKeys.begin(), aRootKeys.end(), "error") != aRootKeys.end())
+ {
+ throw invalid_update_info();
+ }
+
if (aRootKeys.size() != 5)
{
SAL_WARN("desktop.Update", "invalid root entries: " << rResponse);