Package: transmission-gtk
Version: 2.94-1
Severity: wishlist

Hi,

I've just released libdht version 0.26, which fixes a rather unpleasant
bug.  I've filed a bug upstream:

  https://github.com/transmission/transmission/issues/782

Since upstream hasn't done a release in a long time, I'm attaching the bug
fix, in case you wish to patch the Debian package.

diff --git a/dht.c b/dht.c
index c752d13..b3709f9 100644
--- a/dht.c
+++ b/dht.c
@@ -2713,7 +2713,7 @@ send_closest_nodes(const struct sockaddr *sa, int salen,
     int numnodes = 0, numnodes6 = 0;
     struct bucket *b;
 
-    if(want < 0)
+    if(want <= 0)
         want = sa->sa_family == AF_INET ? WANT4 : WANT6;
 
     if((want & WANT4)) {

Reply via email to