diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-21 18:51:05 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-21 18:51:05 +0200 |
commit | 5828dfad1df1ff9c4f2cec18a9a85c87f7364930 (patch) | |
tree | 078f1f13310b32eff941d4bb7caf5fda2f352a8f /src/exchange/taler-exchange-httpd_keys.h | |
parent | 3721780f16f61727e0f29505a32c4aa43b53ed51 (diff) | |
download | exchange-5828dfad1df1ff9c4f2cec18a9a85c87f7364930.tar.gz exchange-5828dfad1df1ff9c4f2cec18a9a85c87f7364930.tar.bz2 exchange-5828dfad1df1ff9c4f2cec18a9a85c87f7364930.zip |
fix NPE on key not found
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keys.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.h b/src/exchange/taler-exchange-httpd_keys.h index 2a74304e9..7494597a2 100644 --- a/src/exchange/taler-exchange-httpd_keys.h +++ b/src/exchange/taler-exchange-httpd_keys.h @@ -356,9 +356,11 @@ TEH_keys_management_get_handler (const struct TEH_RequestHandler *rh, * to use to derive the section name of the configuration to use * @param[out] denom_pub set to the denomination public key (to be freed by caller!) * @param[out] meta denomination type data to complete - * @return #GNUNET_OK on success + * @return #GNUNET_OK on success, + * #GNUNET_NO if @a h_denom_pub is not known + * #GNUNET_SYSERR on hard errors */ -int +enum GNUNET_GenericReturnValue TEH_keys_load_fees (const struct GNUNET_HashCode *h_denom_pub, struct TALER_DenominationPublicKey *denom_pub, struct TALER_EXCHANGEDB_DenominationKeyMetaData *meta); |