MAINT-8363 Additional sanity checks

Tue, 20 Mar 2018 19:09:13 +0200

author
andreykproductengine <andreykproductengine@lindenlab.com>
date
Tue, 20 Mar 2018 19:09:13 +0200
changeset 55349
ae0c3ad0c31b
parent 55348
e7d8c4218f3b
child 55350
544cdc3ab508

MAINT-8363 Additional sanity checks

indra/newview/llviewerregion.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llviewerregion.cpp	Tue Mar 20 16:38:41 2018 +0200
     1.2 +++ b/indra/newview/llviewerregion.cpp	Tue Mar 20 19:09:13 2018 +0200
     1.3 @@ -290,6 +290,13 @@
     1.4              continue;
     1.5          }
     1.6  
     1.7 +        if (!result.isMap() || result.has("error"))
     1.8 +        {
     1.9 +            LL_WARNS("AppInit", "Capabilities") << "Malformed response" << LL_ENDL;
    1.10 +            // setup for retry.
    1.11 +            continue;
    1.12 +        }
    1.13 +
    1.14          LLSD httpResults = result["http_result"];
    1.15          LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults);
    1.16          if (!status)

mercurial