From 7dc884f19b417269b4246fee2b13776b7488ccfe Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Tue, 19 Sep 2023 10:34:50 +1200 Subject: [PATCH] Fix: don't erase enc private key when importing (may need to try again) --- src/ui/you/mod.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ui/you/mod.rs b/src/ui/you/mod.rs index d8089bf0a..697b65e8f 100644 --- a/src/ui/you/mod.rs +++ b/src/ui/you/mod.rs @@ -343,8 +343,6 @@ fn offer_import_priv_key(app: &mut GossipUi, ui: &mut Ui) { app.import_priv.clone(), app.password.clone(), )); - app.import_priv.zeroize(); - app.import_priv = "".to_owned(); } app.password.zeroize(); app.password = "".to_owned();