initialize reserved field

This commit is contained in:
Christian Grothoff 2022-02-09 09:13:40 +01:00
parent cb723a82fd
commit bd930549fb
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -609,12 +609,13 @@ handle_r_derive_request (struct TES_Client *client,
GNUNET_assert (0 == pthread_mutex_unlock (&keys_lock));
{
struct TALER_CRYPTO_RDeriveResponse rdr;
struct TALER_CRYPTO_RDeriveResponse rdr = {
.header.size = htons (sizeof (struct TALER_CRYPTO_RDeriveResponse)),
.header.type = htons (TALER_HELPER_CS_MT_RES_RDERIVE),
.r_pub = r_pub
};
enum GNUNET_GenericReturnValue ret;
rdr.header.size = htons (sizeof (struct TALER_CRYPTO_RDeriveResponse));
rdr.header.type = htons (TALER_HELPER_CS_MT_RES_RDERIVE);
rdr.r_pub = r_pub;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Sending CS Derived R after %s\n",
GNUNET_TIME_relative2s (