From: Christian Grothoff Date: Wed, 27 Jul 2011 13:56:45 +0000 (+0000) Subject: push back X-Git-Tag: initial-import-from-subversion-38251~17598 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a1d268aceb896110b5493d1c0b80a053443dbfe2;p=oweals%2Fgnunet.git push back --- 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, } if (matching_bits <= ntohl (size_estimate_messages[idx].matching_bits)) { + if ( (idx < estimate_index) && + (peer_entry->previous_round == GNUNET_YES) ) + peer_entry->previous_round = GNUNET_NO; + /* push back our result now, that peer is spreading bad information... */ + if (peer_entry->transmit_task != GNUNET_SCHEDULER_NO_TASK) + GNUNET_SCHEDULER_cancel (peer_entry->transmit_task); + peer_entry->transmit_task = GNUNET_SCHEDULER_add_now (&transmit_task, + peer_entry); /* Not closer than our most recent message, no need to do work here */ GNUNET_STATISTICS_update (stats, "# flood messages ignored (had closer already)",