Fix small typo in return value checking (#75)

pull/25/head
Roman Zeyde 8 years ago committed by Pavol Rusnak
parent cf21bb2fbf
commit 228f9425d1

@ -470,7 +470,7 @@ int hdnode_get_shared_key(const HDNode *node, const uint8_t *peer_public_key, ui
*result_size = 33;
return 0;
} 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;
}
*result_size = 65;

Loading…
Cancel
Save