diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-03-11 16:40:26 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-03-11 16:40:26 +0100 |
commit | c658ee171c6e6339b4bf4f8374351267ea010a59 (patch) | |
tree | 792759d4412e2e4f9556a6e44035ca41d297e4f8 /src/dht.c | |
parent | use after free fix (diff) | |
download | travnik-c658ee171c6e6339b4bf4f8374351267ea010a59.tar travnik-c658ee171c6e6339b4bf4f8374351267ea010a59.tar.gz travnik-c658ee171c6e6339b4bf4f8374351267ea010a59.tar.bz2 travnik-c658ee171c6e6339b4bf4f8374351267ea010a59.tar.lz travnik-c658ee171c6e6339b4bf4f8374351267ea010a59.tar.xz travnik-c658ee171c6e6339b4bf4f8374351267ea010a59.tar.zst travnik-c658ee171c6e6339b4bf4f8374351267ea010a59.zip |
Diffstat (limited to 'src/dht.c')
-rw-r--r-- | src/dht.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2316,7 +2316,7 @@ void periodic (struct dht * d) { if (!n && !t->nodes->unanswered) // if unanswered, we already sent it n = t->nodes; } - while (sent < 2) { + if (sent < 2) { #define RTGP(buckets) {struct bucket * b = d->buckets; \ find(t->hash, &b, NULL); \ struct node * n = b->nodes; \ |