diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-09 09:13:40 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-09 09:13:40 +0100 |
commit | bd930549fbcc185ab9f675665b77496af95e00dd (patch) | |
tree | 401fcc42b355c2031ccc3a3131dc526c49cdb96e | |
parent | cb723a82fda81c99fcda48977cf75eee844ac121 (diff) | |
download | exchange-bd930549fbcc185ab9f675665b77496af95e00dd.tar.xz |
initialize reserved field
-rw-r--r-- | src/util/taler-exchange-secmod-cs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util/taler-exchange-secmod-cs.c b/src/util/taler-exchange-secmod-cs.c index 4e7b7d1b0..5446c70f7 100644 --- a/src/util/taler-exchange-secmod-cs.c +++ b/src/util/taler-exchange-secmod-cs.c @@ -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 ( |