aboutsummaryrefslogtreecommitdiff
path: root/src/topology
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-25 21:08:55 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-25 21:08:55 +0000
commit537903a8dc4c3ecf2dfa382af0289ddf890adfc7 (patch)
tree93e448c15c843861bd5dfe86c7cad3245abedfe7 /src/topology
parent2b61888a0bf1d41b2b25256ca9834c3040551ce9 (diff)
downloadgnunet-537903a8dc4c3ecf2dfa382af0289ddf890adfc7.tar.gz
gnunet-537903a8dc4c3ecf2dfa382af0289ddf890adfc7.zip
fixing common off-by-one error with respect to maximum message size
Diffstat (limited to 'src/topology')
-rw-r--r--src/topology/gnunet-daemon-topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index 970045093..1c58b5210 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -629,7 +629,7 @@ schedule_next_hello (void *cls,
629 /* find applicable HELLOs */ 629 /* find applicable HELLOs */
630 fah.peer = pl; 630 fah.peer = pl;
631 fah.result = NULL; 631 fah.result = NULL;
632 fah.max_size = GNUNET_SERVER_MAX_MESSAGE_SIZE; 632 fah.max_size = GNUNET_SERVER_MAX_MESSAGE_SIZE - 1;
633 fah.next_adv = GNUNET_TIME_UNIT_FOREVER_REL; 633 fah.next_adv = GNUNET_TIME_UNIT_FOREVER_REL;
634 GNUNET_CONTAINER_multihashmap_iterate (peers, 634 GNUNET_CONTAINER_multihashmap_iterate (peers,
635 &find_advertisable_hello, 635 &find_advertisable_hello,