From 7fd5209cdb188dcd99cc79570dc4aa69c266eec2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 25 May 2017 12:50:39 -0400 Subject: [PATCH] always set backing key values --- src/App/Services/CryptoService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App/Services/CryptoService.cs b/src/App/Services/CryptoService.cs index fc564abbf..c6e42cb37 100644 --- a/src/App/Services/CryptoService.cs +++ b/src/App/Services/CryptoService.cs @@ -65,9 +65,10 @@ namespace Bit.App.Services { PreviousKey = _key; _secureStorage.Delete(KeyKey); - _key = null; - _legacyEtmKey = null; } + + _key = value; + _legacyEtmKey = null; } }