summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2020-01-08 22:56:10 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2020-01-08 22:56:10 +0200
commitc090cd32b8f6d0321d3785cf4a6f7edcd3936e87 (patch)
treee165050a67b9e77547c8c44180f34afbb21c6efc /indra
parentae013b5c825b303cc1695a7735d7268bbdaa4add (diff)
SL-12486 Size check fix
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llsecapi.h2
-rw-r--r--indra/newview/llsechandler_basic.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llsecapi.h b/indra/newview/llsecapi.h
index 5cde0d549e..69b6b32923 100644
--- a/indra/newview/llsecapi.h
+++ b/indra/newview/llsecapi.h
@@ -491,7 +491,7 @@ public:
virtual bool hasCredentialMap(const std::string& storage,
const std::string& grid)=0;
- // returns true im map is empty or does not exist
+ // returns true if map is empty or does not exist
virtual bool emptyCredentialMap(const std::string& storage,
const std::string& grid)=0;
diff --git a/indra/newview/llsechandler_basic.cpp b/indra/newview/llsechandler_basic.cpp
index 2932ae45a3..55e49100c3 100644
--- a/indra/newview/llsechandler_basic.cpp
+++ b/indra/newview/llsechandler_basic.cpp
@@ -1674,7 +1674,7 @@ bool LLSecAPIBasicHandler::emptyCredentialMap(const std::string& storage, const
LLSD credential = getProtectedData(storage, grid);
- return !credential.isMap() || credential.emptyMap();
+ return !credential.isMap() || credential.size() == 0;
}
// Load map of credentials from specified credential store, given the grid