1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 14:08:11 +00:00

Fix small typo in return value checking (#75)

This commit is contained in:
Roman Zeyde 2016-10-22 01:26:29 +03:00 committed by Pavol Rusnak
parent cf21bb2fbf
commit 228f9425d1

View File

@ -470,7 +470,7 @@ int hdnode_get_shared_key(const HDNode *node, const uint8_t *peer_public_key, ui
*result_size = 33; *result_size = 33;
return 0; return 0;
} else { } else {
if (!ecdh_multiply(node->curve->params, node->private_key, peer_public_key, session_key)) { if (ecdh_multiply(node->curve->params, node->private_key, peer_public_key, session_key) != 0) {
return 1; return 1;
} }
*result_size = 65; *result_size = 65;