From c090cd32b8f6d0321d3785cf4a6f7edcd3936e87 Mon Sep 17 00:00:00 2001
From: andreykproductengine <andreykproductengine@lindenlab.com>
Date: Wed, 8 Jan 2020 22:56:10 +0200
Subject: [PATCH] SL-12486 Size check fix

---
 indra/newview/llsecapi.h             | 2 +-
 indra/newview/llsechandler_basic.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/newview/llsecapi.h b/indra/newview/llsecapi.h
index 5cde0d549eb..69b6b329235 100644
--- a/indra/newview/llsecapi.h
+++ b/indra/newview/llsecapi.h
@@ -491,7 +491,7 @@ class LLSecAPIHandler : public LLThreadSafeRefCount
 	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 2932ae45a3a..55e49100c35 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
-- 
GitLab