Revision 21a6d161 src/PeerSampler/cyclon.c

View differences:

src/PeerSampler/cyclon.c
145 145
    if (h->type == CYCLON_QUERY) {
146 146
      sent_cache = rand_cache(context->local_cache, context->sent_entries);
147 147
      cyclon_reply(context->pc, remote_cache, sent_cache);
148
      nodeid_free(context->dst);
148 149
      context->dst = NULL;
149 150
    }
150 151
    cache_check(context->local_cache);
......
169 170
      context->flying_cache = NULL;
170 171
    }
171 172
    cache_update(context->local_cache);
173
    nodeid_free(context->dst);
172 174
    context->dst = last_peer(context->local_cache);
173 175
    if (context->dst == NULL) {
174 176
      return 0;

Also available in: Unified diff