diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-05-09 13:30:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-05-09 13:30:55 +0200 |
commit | 46c7647b27e4d19d2aa7caaf5b6b5f0f0b8a2826 (patch) | |
tree | 3c1697e6a9bb9d219c89563bf709f5dc7d349085 | |
parent | 7a259fb7bdbbab8e96bab5f8a1aa5cd49422a4ab (diff) |
handle error code returned by TALER_EXCHANGEDB_denomination_keys_iterate
-rw-r--r-- | src/exchange-tools/taler-exchange-keyup.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c index 6324ed971..2f70a0d5c 100644 --- a/src/exchange-tools/taler-exchange-keyup.c +++ b/src/exchange-tools/taler-exchange-keyup.c @@ -1015,7 +1015,7 @@ create_wire_fee_for_method (void *cls, break; } GNUNET_free (amounts); - + GNUNET_free (opt); sign_af (af, wiremethod, @@ -1150,10 +1150,15 @@ revoke_denomination (const struct GNUNET_HashCode *hc) "KEYDIR"); return GNUNET_SYSERR; } - TALER_EXCHANGEDB_denomination_keys_iterate (rc.basedir, - &master_public_key, - &exchange_keys_revoke_by_dki, - &rc); + if (-1 == + TALER_EXCHANGEDB_denomination_keys_iterate (rc.basedir, + &master_public_key, + &exchange_keys_revoke_by_dki, + &rc)) + { + GNUNET_break (0); + return GNUNET_SYSERR; + } GNUNET_free (rc.basedir); return rc.ok; } |