From 85cebfe9682b2fd7144b9d360a99162a27fd252d Mon Sep 17 00:00:00 2001 From: John Dvorak Date: Thu, 18 Jun 2015 09:55:12 -0400 Subject: [PATCH] Change return value of ecdsa_sign_digest Error codes were not being propagated, always returned as 0. --- ecdsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecdsa.c b/ecdsa.c index 1462ad5eb8..cb29a82d96 100644 --- a/ecdsa.c +++ b/ecdsa.c @@ -745,7 +745,7 @@ int ecdsa_sign_digest(const uint8_t *priv_key, const uint8_t *digest, uint8_t *s MEMSET_BZERO(&k, sizeof(k)); MEMSET_BZERO(&z, sizeof(z)); MEMSET_BZERO(&R, sizeof(R)); - return 0; + return result; } void ecdsa_get_public_key33(const uint8_t *priv_key, uint8_t *pub_key)