From 11ad8c4f48d128df93aa006890676b7262d198ee Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 12 Feb 2024 18:06:53 +0100 Subject: [PATCH] Attempt to fix gui login errors when uri is missing --- agent/actions/logins.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/agent/actions/logins.go b/agent/actions/logins.go index f472322..d10224a 100644 --- a/agent/actions/logins.go +++ b/agent/actions/logins.go @@ -129,6 +129,8 @@ func handleListLoginsRequest(request messages.IPCMessage, cfg *config.Config, va actionsLog.Warn("Could not decrypt login:" + err.Error()) continue } + } else { + decryptedName = []byte{} } if !login.Login.Username.IsNull() { @@ -137,6 +139,8 @@ func handleListLoginsRequest(request messages.IPCMessage, cfg *config.Config, va actionsLog.Warn("Could not decrypt login:" + err.Error()) continue } + } else { + decryptedUsername = []byte{} } if !login.Login.Password.IsNull() { @@ -145,6 +149,8 @@ func handleListLoginsRequest(request messages.IPCMessage, cfg *config.Config, va actionsLog.Warn("Could not decrypt login:" + err.Error()) continue } + } else { + decryptedPassword = []byte{} } if !login.Login.Totp.IsNull() { @@ -153,6 +159,8 @@ func handleListLoginsRequest(request messages.IPCMessage, cfg *config.Config, va actionsLog.Warn("Could not decrypt login:" + err.Error()) continue } + } else { + decryptedTotp = []byte{} } if !login.Login.URI.IsNull() { @@ -161,6 +169,8 @@ func handleListLoginsRequest(request messages.IPCMessage, cfg *config.Config, va actionsLog.Warn("Could not decrypt login:" + err.Error()) continue } + } else { + decryptedURL = []byte{} } decryptedLoginCiphers = append(decryptedLoginCiphers, messages.DecryptedLoginCipher{