commit a1c1172cf9e7e9831c049c45d4c14f68c5a17e99 parent 44ceef6a0a93cfcfedc76c4e210e9911b25c1910 Author: Christian Grothoff <christian@grothoff.org> Date: Wed, 20 Mar 2024 15:21:47 +0100 clean up cb Diffstat:
| M | src/donau/donau-httpd_keys.c | | | 11 | +---------- |
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/src/donau/donau-httpd_keys.c b/src/donau/donau-httpd_keys.c @@ -559,19 +559,10 @@ insert_donation_unit_cb (void *cls, void *value) { struct KeysBuilderContext *kbc = cls; - struct HelperDonationUnit *hd = value; - struct DH_DonationUnitKey *du; - - du = GNUNET_CONTAINER_multihashmap_get ( - kbc->ksh->donation_unit_map, - h_du_pub); - - if (NULL != du) - return GNUNET_OK; /* skip: this key is already active! */ + struct DH_DonationUnitKey *du = value; if (GNUNET_TIME_relative_is_zero (hd->validity_duration)) return GNUNET_OK; /* this key already expired! */ - GNUNET_assert ( 0 == json_array_append_new ( kbc->donation_units,