- fix condition on connection timeout
authorBart Polot <bart@net.in.tum.de>
Wed, 30 Mar 2016 09:17:57 +0000 (09:17 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 30 Mar 2016 09:17:57 +0000 (09:17 +0000)
src/cadet/gnunet-service-cadet_connection.c

index 0827f53ec9c187a481b94e35a63afa57c0875cc1..186204f1e4276b9e41feb14e3c06851e303d6585 100644 (file)
@@ -1564,7 +1564,7 @@ connection_timeout (struct CadetConnection *c, int fwd)
   }
 
   /* If dest, salvage queued traffic. */
-  if (GCC_is_origin (c, !fwd))
+  if (GCC_is_terminal (c, fwd))
   {
     const struct GNUNET_PeerIdentity *next_hop;