diff options
-rw-r--r-- | src/nse/gnunet-service-nse.c | 8 |
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)", |