Commit MetaInfo

Revision374d2a518494a9fc3f574ad86b67f6fecce57ce8 (tree)
Time2022-12-28 20:06:47
Authorsimphone
Commitersimphone

Log Message

dht 0.27

Change Summary

Incremental Difference

diff -r ceb0503eb4e9 -r 374d2a518494 dht/CHANGES
--- a/dht/CHANGES Sun Dec 12 08:39:35 2021 -0500
+++ b/dht/CHANGES Wed Dec 28 06:06:47 2022 -0500
@@ -1,3 +1,8 @@
1+27 April 2022: dht-0.27
2+
3+ * Fixed the return value of new_search when no slots are available.
4+ Thanks to Joel.
5+
16 16 December 2018: dht-0.26
27
38 * Fixed a bug introduced in 0.25 that prevented replying to find_nodes
diff -r ceb0503eb4e9 -r 374d2a518494 dht/dht.c
--- a/dht/dht.c Sun Dec 12 08:39:35 2021 -0500
+++ b/dht/dht.c Wed Dec 28 06:06:47 2022 -0500
@@ -1294,8 +1294,12 @@
12941294 }
12951295 }
12961296
1297- /* Oh, well, never mind. Reuse the oldest slot. */
1298- return oldest;
1297+ /* Return oldest slot if it's done. */
1298+ if(oldest && oldest->done)
1299+ return oldest;
1300+
1301+ /* No available slots found, return NULL. */
1302+ return NULL;
12991303 }
13001304
13011305 /* Insert the contents of a bucket into a search structure. */
Show on old repository browser