From 84bda8ea4dc2b7ab2a9c7e21921b379c775b704a Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Tue, 20 Mar 2018 19:09:13 +0200 Subject: MAINT-8363 Additional sanity checks --- indra/newview/llviewerregion.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 101af1a60a..b128e2cd93 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -290,6 +290,13 @@ void LLViewerRegionImpl::requestBaseCapabilitiesCoro(U64 regionHandle) continue; } + if (!result.isMap() || result.has("error")) + { + LL_WARNS("AppInit", "Capabilities") << "Malformed response" << LL_ENDL; + // setup for retry. + continue; + } + LLSD httpResults = result["http_result"]; LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); if (!status) -- cgit v1.2.3