summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-11 16:40:26 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-11 16:40:26 +0100
commitc658ee171c6e6339b4bf4f8374351267ea010a59 (patch)
tree792759d4412e2e4f9556a6e44035ca41d297e4f8
parentuse after free fix (diff)
downloadtravnik-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 '')
-rw-r--r--src/dht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dht.c b/src/dht.c
index 8a5c107..97c54ea 100644
--- a/src/dht.c
+++ b/src/dht.c
@@ -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; \