From 2ff32e98347f9e44136a8f7793dc34906b967937 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 8 Nov 2013 12:04:46 +0000 Subject: [PATCH] -fix #3095 --- src/util/crypto_ecc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c index 1fd41b327..73e763d9a 100644 --- a/src/util/crypto_ecc.c +++ b/src/util/crypto_ecc.c @@ -1437,9 +1437,7 @@ GNUNET_CRYPTO_ecc_ecdh (const struct GNUNET_CRYPTO_EcdhePrivateKey *priv, GNUNET_assert (0 == gcry_mpi_print (GCRYMPI_FMT_STD, xbuf, rsize, &rsize, result_x)); - GNUNET_assert (rsize == sizeof (xbuf)); - mpi_print (xbuf, sizeof (xbuf), result_x); - GNUNET_CRYPTO_hash (xbuf, sizeof (xbuf), key_material); + GNUNET_CRYPTO_hash (xbuf, rsize, key_material); gcry_mpi_release (result_x); return GNUNET_OK; } -- 2.25.1