From c090cd32b8f6d0321d3785cf4a6f7edcd3936e87 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Wed, 8 Jan 2020 22:56:10 +0200 Subject: SL-12486 Size check fix --- indra/newview/llsecapi.h | 2 +- indra/newview/llsechandler_basic.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview') 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 -- cgit v1.2.3