aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dht/gnunet-service-xdht_neighbours.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/dht/gnunet-service-xdht_neighbours.c b/src/dht/gnunet-service-xdht_neighbours.c
index 3d17a07fa..167ba5577 100644
--- a/src/dht/gnunet-service-xdht_neighbours.c
+++ b/src/dht/gnunet-service-xdht_neighbours.c
@@ -2194,7 +2194,6 @@ GDS_NEIGHBOURS_send_put (const struct GNUNET_HashCode *key,
2194 msize = data_size + sizeof (struct PeerPutMessage); 2194 msize = data_size + sizeof (struct PeerPutMessage);
2195 } 2195 }
2196 2196
2197 /* Should it be GNUNET_SERVER_MAX_MESSAGE_SIZE? */
2198 if (msize >= GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE) 2197 if (msize >= GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE)
2199 { 2198 {
2200 DEBUG("msize = %lu\n",msize); 2199 DEBUG("msize = %lu\n",msize);
@@ -3650,7 +3649,7 @@ handle_dht_p2p_put (void *cls, const struct GNUNET_PeerIdentity *peer,
3650 sizeof (struct PeerPutMessage) + 3649 sizeof (struct PeerPutMessage) +
3651 putlen * sizeof (struct GNUNET_PeerIdentity)) || 3650 putlen * sizeof (struct GNUNET_PeerIdentity)) ||
3652 (putlen > 3651 (putlen >
3653 GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity))) 3652 GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)))
3654 { 3653 {
3655 GNUNET_break_op (0); 3654 GNUNET_break_op (0);
3656 return GNUNET_OK; 3655 return GNUNET_OK;
@@ -3850,7 +3849,7 @@ handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer,
3850 sizeof (struct PeerGetMessage) + 3849 sizeof (struct PeerGetMessage) +
3851 get_length * sizeof (struct GNUNET_PeerIdentity)) || 3850 get_length * sizeof (struct GNUNET_PeerIdentity)) ||
3852 (get_length > 3851 (get_length >
3853 GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity))) 3852 GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)))
3854 { 3853 {
3855 GNUNET_break_op (0); 3854 GNUNET_break_op (0);
3856 return GNUNET_YES; 3855 return GNUNET_YES;
@@ -3969,9 +3968,9 @@ handle_dht_p2p_get_result (void *cls, const struct GNUNET_PeerIdentity *peer,
3969 getlen * sizeof (struct GNUNET_PeerIdentity) + 3968 getlen * sizeof (struct GNUNET_PeerIdentity) +
3970 putlen * sizeof (struct GNUNET_PeerIdentity)) || 3969 putlen * sizeof (struct GNUNET_PeerIdentity)) ||
3971 (getlen > 3970 (getlen >
3972 GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity) || 3971 GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity) ||
3973 (putlen > 3972 (putlen >
3974 GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity)))) 3973 GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE / sizeof (struct GNUNET_PeerIdentity))))
3975 { 3974 {
3976 GNUNET_break_op (0); 3975 GNUNET_break_op (0);
3977 return GNUNET_YES; 3976 return GNUNET_YES;