aboutsummaryrefslogtreecommitdiff
path: root/src/zonemaster/gnunet-service-zonemaster.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-10-20 22:13:15 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-10-20 22:13:15 +0900
commite2942b640a1d92cba8e074438a77504fba27ecc3 (patch)
tree0a58437afcafb45019add5672e9c50635e94602d /src/zonemaster/gnunet-service-zonemaster.c
parent6f2f55e1d5b72cfc1fbd9715d7846921f6cb1e1b (diff)
downloadgnunet-e2942b640a1d92cba8e074438a77504fba27ecc3.tar.gz
gnunet-e2942b640a1d92cba8e074438a77504fba27ecc3.zip
-fix return value of put initiation
Diffstat (limited to 'src/zonemaster/gnunet-service-zonemaster.c')
-rw-r--r--src/zonemaster/gnunet-service-zonemaster.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zonemaster/gnunet-service-zonemaster.c b/src/zonemaster/gnunet-service-zonemaster.c
index 95863eeac..48c27380b 100644
--- a/src/zonemaster/gnunet-service-zonemaster.c
+++ b/src/zonemaster/gnunet-service-zonemaster.c
@@ -788,7 +788,7 @@ free_job (struct OpenSignJob *job)
788 * @param ma handle for the put operation 788 * @param ma handle for the put operation
789 * @return DHT PUT handle, NULL on error 789 * @return DHT PUT handle, NULL on error
790 */ 790 */
791static struct GNUNET_DHT_PutHandle * 791static void
792perform_dht_put (const struct GNUNET_IDENTITY_PrivateKey *key, 792perform_dht_put (const struct GNUNET_IDENTITY_PrivateKey *key,
793 const char *label, 793 const char *label,
794 const struct GNUNET_GNSRECORD_Data *rd, 794 const struct GNUNET_GNSRECORD_Data *rd,
@@ -830,7 +830,7 @@ perform_dht_put (const struct GNUNET_IDENTITY_PrivateKey *key,
830 if (NULL == block) 830 if (NULL == block)
831 { 831 {
832 GNUNET_break (0); 832 GNUNET_break (0);
833 return NULL; /* whoops */ 833 return; /* whoops */
834 } 834 }
835 if (rd_count != rd_public_count) 835 if (rd_count != rd_public_count)
836 GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_block_create_unsigned (key, 836 GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_block_create_unsigned (key,
@@ -861,7 +861,7 @@ perform_dht_put (const struct GNUNET_IDENTITY_PrivateKey *key,
861 label, 861 label,
862 GNUNET_STRINGS_absolute_time_to_string (expire)); 862 GNUNET_STRINGS_absolute_time_to_string (expire));
863 num_public_records++; 863 num_public_records++;
864 return NULL; // FIXME-Martin: WTF? 864 return;
865} 865}
866 866
867 867
@@ -1142,7 +1142,7 @@ dht_put_monitor_continuation (void *cls)
1142 * @param ma handle for the PUT operation 1142 * @param ma handle for the PUT operation
1143 * @return DHT PUT handle, NULL on error 1143 * @return DHT PUT handle, NULL on error
1144 */ 1144 */
1145static struct GNUNET_DHT_PutHandle * 1145static void
1146perform_dht_put_monitor (const struct GNUNET_IDENTITY_PrivateKey *key, 1146perform_dht_put_monitor (const struct GNUNET_IDENTITY_PrivateKey *key,
1147 const char *label, 1147 const char *label,
1148 const struct GNUNET_GNSRECORD_Data *rd, 1148 const struct GNUNET_GNSRECORD_Data *rd,
@@ -1184,7 +1184,7 @@ perform_dht_put_monitor (const struct GNUNET_IDENTITY_PrivateKey *key,
1184 if (NULL == block) 1184 if (NULL == block)
1185 { 1185 {
1186 GNUNET_break (0); 1186 GNUNET_break (0);
1187 return NULL; /* whoops */ 1187 return; /* whoops */
1188 } 1188 }
1189 if (rd_count != rd_public_count) 1189 if (rd_count != rd_public_count)
1190 GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_block_create_unsigned (key, 1190 GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_block_create_unsigned (key,