check for sessionPassphraseCached

pull/25/head
Pavol Rusnak 9 years ago
parent f557e6149d
commit ed76d030ef
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -265,7 +265,7 @@ bool storage_getRootNode(HDNode *node)
if (hdnode_from_xprv(storage.node.depth, storage.node.fingerprint, storage.node.child_num, storage.node.chain_code.bytes, storage.node.private_key.bytes, &sessionRootNode) == 0) {
return false;
}
if (storage.has_passphrase_protection && storage.passphrase_protection && strlen(sessionPassphrase)) {
if (storage.has_passphrase_protection && storage.passphrase_protection && sessionPassphraseCached && strlen(sessionPassphrase) > 0) {
// decrypt hd node
uint8_t secret[64];
uint8_t salt[12];

Loading…
Cancel
Save