aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_rsa.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-06 15:37:36 +0000
committerChristian Grothoff <christian@grothoff.org>2015-08-06 15:37:36 +0000
commit027f0af7a74fa435bc4b30692f3d05c8ede50cff (patch)
tree652ed6cc4ad0dbf1aa9d9d42f250cd59afd0f770 /src/util/crypto_rsa.c
parentb2f63743413650d2c26774389122d3e25e190a10 (diff)
downloadgnunet-027f0af7a74fa435bc4b30692f3d05c8ede50cff.tar.gz
gnunet-027f0af7a74fa435bc4b30692f3d05c8ede50cff.zip
-more correct logic
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r--src/util/crypto_rsa.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 5f96c592e..f5b6466fc 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -1030,9 +1030,8 @@ GNUNET_CRYPTO_rsa_signature_dup (const struct GNUNET_CRYPTO_rsa_Signature *sig)
1030 1030
1031 /* verify that this is an RSA signature */ 1031 /* verify that this is an RSA signature */
1032 ret = key_from_sexp (&s, sig->sexp, "sig-val", "s"); 1032 ret = key_from_sexp (&s, sig->sexp, "sig-val", "s");
1033 GNUNET_assert (0 == ret); 1033 if (0 != ret)
1034 gcry_mpi_release (s); 1034 ret = key_from_sexp (&s, sig->sexp, "rsa", "s");
1035 ret = key_from_sexp (&s, sig->sexp, "rsa", "s");
1036 GNUNET_assert (0 == ret); 1035 GNUNET_assert (0 == ret);
1037 gcry_mpi_release (s); 1036 gcry_mpi_release (s);
1038 /* copy the sexp */ 1037 /* copy the sexp */