From 228f9425d1b6f0050c2a1b29bf813d2077e1b19b Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 22 Oct 2016 01:26:29 +0300 Subject: [PATCH] Fix small typo in return value checking (#75) --- bip32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip32.c b/bip32.c index b1fe8fc0a8..a4d22e72b4 100644 --- a/bip32.c +++ b/bip32.c @@ -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;