diff options
-rw-r--r-- | src/dht/gnunet-service-dht_clients.c | 6 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht_datacache.c | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/dht/gnunet-service-dht_clients.c b/src/dht/gnunet-service-dht_clients.c index 8acde2fe7..28be0e9be 100644 --- a/src/dht/gnunet-service-dht_clients.c +++ b/src/dht/gnunet-service-dht_clients.c | |||
@@ -462,10 +462,9 @@ static enum GNUNET_GenericReturnValue | |||
462 | check_dht_local_put (void *cls, | 462 | check_dht_local_put (void *cls, |
463 | const struct GNUNET_DHT_ClientPutMessage *dht_msg) | 463 | const struct GNUNET_DHT_ClientPutMessage *dht_msg) |
464 | { | 464 | { |
465 | uint32_t replication_level; | 465 | uint32_t replication_level = ntohl (dht_msg->desired_replication_level); |
466 | 466 | ||
467 | (void) cls; | 467 | (void) cls; |
468 | replication_level = ntohl (dht_msg->desired_replication_level); | ||
469 | if (replication_level > GNUNET_DHT_MAXIMUM_REPLICATION_LEVEL) | 468 | if (replication_level > GNUNET_DHT_MAXIMUM_REPLICATION_LEVEL) |
470 | { | 469 | { |
471 | GNUNET_break_op (0); | 470 | GNUNET_break_op (0); |
@@ -1433,6 +1432,9 @@ GDS_CLIENTS_process_put (enum GNUNET_DHT_RouteOption options, | |||
1433 | } | 1432 | } |
1434 | 1433 | ||
1435 | 1434 | ||
1435 | /* ********************** Initialization logic ***************** */ | ||
1436 | |||
1437 | |||
1436 | /** | 1438 | /** |
1437 | * Initialize client subsystem. | 1439 | * Initialize client subsystem. |
1438 | * | 1440 | * |
diff --git a/src/dht/gnunet-service-dht_datacache.c b/src/dht/gnunet-service-dht_datacache.c index a60f49a51..131cad8aa 100644 --- a/src/dht/gnunet-service-dht_datacache.c +++ b/src/dht/gnunet-service-dht_datacache.c | |||
@@ -325,9 +325,9 @@ datacache_get_successors_iterator (void *cls, | |||
325 | 325 | ||
326 | 326 | ||
327 | void | 327 | void |
328 | GDS_DATACACHE_get_successors (const struct GNUNET_HashCode *key, | 328 | GDS_DATACACHE_get_closest (const struct GNUNET_HashCode *key, |
329 | GDS_DATACACHE_GetCallback cb, | 329 | GDS_DATACACHE_GetCallback cb, |
330 | void *cb_cls) | 330 | void *cb_cls) |
331 | { | 331 | { |
332 | struct SuccContext sc = { | 332 | struct SuccContext sc = { |
333 | .cb = cb, | 333 | .cb = cb, |