diff options
Diffstat (limited to 'src/lib/util/crypto_ecc_setup.c')
-rw-r--r-- | src/lib/util/crypto_ecc_setup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/util/crypto_ecc_setup.c b/src/lib/util/crypto_ecc_setup.c index 2ee9ed931..07e28f89d 100644 --- a/src/lib/util/crypto_ecc_setup.c +++ b/src/lib/util/crypto_ecc_setup.c | |||
@@ -297,6 +297,7 @@ GNUNET_CRYPTO_sign_by_peer_identity (const struct | |||
297 | struct GNUNET_CRYPTO_EddsaSignature *sig) | 297 | struct GNUNET_CRYPTO_EddsaSignature *sig) |
298 | { | 298 | { |
299 | struct GNUNET_CRYPTO_EddsaPrivateKey *priv; | 299 | struct GNUNET_CRYPTO_EddsaPrivateKey *priv; |
300 | enum GNUNET_GenericReturnValue result; | ||
300 | 301 | ||
301 | if (NULL == (priv = GNUNET_CRYPTO_eddsa_key_create_from_configuration (cfg))) | 302 | if (NULL == (priv = GNUNET_CRYPTO_eddsa_key_create_from_configuration (cfg))) |
302 | { | 303 | { |
@@ -305,7 +306,9 @@ GNUNET_CRYPTO_sign_by_peer_identity (const struct | |||
305 | return GNUNET_SYSERR; | 306 | return GNUNET_SYSERR; |
306 | } | 307 | } |
307 | 308 | ||
308 | return GNUNET_CRYPTO_eddsa_sign_ (priv, purpose, sig); | 309 | result = GNUNET_CRYPTO_eddsa_sign_ (priv, purpose, sig); |
310 | GNUNET_CRYPTO_eddsa_key_clear (priv); | ||
311 | return result; | ||
309 | } | 312 | } |
310 | 313 | ||
311 | 314 | ||