aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-27 13:56:45 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-27 13:56:45 +0000
commita1d268aceb896110b5493d1c0b80a053443dbfe2 (patch)
treeef9df7d2088f63e0e2269dcfebbbe72a075d8dcf /src/nse
parent3e3a641a4c8e894c13767956cc237d01539b1c1e (diff)
downloadgnunet-a1d268aceb896110b5493d1c0b80a053443dbfe2.tar.gz
gnunet-a1d268aceb896110b5493d1c0b80a053443dbfe2.zip
push back
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/gnunet-service-nse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index c7bd3881e..3d980ca26 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -1068,6 +1068,14 @@ handle_p2p_size_estimate(void *cls,
1068 } 1068 }
1069 if (matching_bits <= ntohl (size_estimate_messages[idx].matching_bits)) 1069 if (matching_bits <= ntohl (size_estimate_messages[idx].matching_bits))
1070 { 1070 {
1071 if ( (idx < estimate_index) &&
1072 (peer_entry->previous_round == GNUNET_YES) )
1073 peer_entry->previous_round = GNUNET_NO;
1074 /* push back our result now, that peer is spreading bad information... */
1075 if (peer_entry->transmit_task != GNUNET_SCHEDULER_NO_TASK)
1076 GNUNET_SCHEDULER_cancel (peer_entry->transmit_task);
1077 peer_entry->transmit_task = GNUNET_SCHEDULER_add_now (&transmit_task,
1078 peer_entry);
1071 /* Not closer than our most recent message, no need to do work here */ 1079 /* Not closer than our most recent message, no need to do work here */
1072 GNUNET_STATISTICS_update (stats, 1080 GNUNET_STATISTICS_update (stats,
1073 "# flood messages ignored (had closer already)", 1081 "# flood messages ignored (had closer already)",