From 1777db292e6e0d653e5e1e103317f2cc5ac241b6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 9 Feb 2022 16:43:36 +0100 Subject: -fix withdraw logic --- src/util/crypto_helper_cs.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/util/crypto_helper_cs.c') diff --git a/src/util/crypto_helper_cs.c b/src/util/crypto_helper_cs.c index 6374a5a7d..f772c39f5 100644 --- a/src/util/crypto_helper_cs.c +++ b/src/util/crypto_helper_cs.c @@ -633,13 +633,14 @@ TALER_CRYPTO_helper_cs_r_derive (struct TALER_CRYPTO_CsDenominationHelper *dh, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Requesting R\n"); { - struct TALER_CRYPTO_CsRDeriveRequest rdr; + struct TALER_CRYPTO_CsRDeriveRequest rdr = { + .header.size = htons (sizeof (rdr)), + .header.type = htons (TALER_HELPER_CS_MT_REQ_RDERIVE), + .reserved = htonl (0), + .h_cs = *h_cs, + .nonce = *nonce + }; - rdr.header.size = htons (sizeof (rdr)); - rdr.header.type = htons (TALER_HELPER_CS_MT_REQ_RDERIVE); - rdr.reserved = htonl (0); - rdr.h_cs = *h_cs; - rdr.nonce = *nonce; if (GNUNET_OK != TALER_crypto_helper_send_all (dh->sock, &rdr, -- cgit v1.2.3