aboutsummaryrefslogtreecommitdiff
path: root/src/device_trezor
diff options
context:
space:
mode:
authoranon <anon [at] nowhere>2021-01-20 21:02:36 +0000
committerselsta <selsta@sent.at>2021-01-20 22:06:51 +0100
commit8d03bb688e68f0b297e07f3e3d37785199b5d6d3 (patch)
treebe93c9d89baa4d70989caaf3a6ad4745dfefdf1f /src/device_trezor
parentdevice_trezor: wipe string fields properly (diff)
downloadmonero-8d03bb688e68f0b297e07f3e3d37785199b5d6d3.tar.xz
device_trezor: add redundant check
Diffstat (limited to 'src/device_trezor')
-rw-r--r--src/device_trezor/device_trezor_base.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device_trezor/device_trezor_base.hpp b/src/device_trezor/device_trezor_base.hpp
index 4db8f0c8e..0162b23df 100644
--- a/src/device_trezor/device_trezor_base.hpp
+++ b/src/device_trezor/device_trezor_base.hpp
@@ -165,7 +165,7 @@ namespace trezor {
// Scoped session closer
BOOST_SCOPE_EXIT_ALL(&, this) {
- if (open_session){
+ if (open_session && this->get_transport()){
this->get_transport()->close();
}
};