- use proper connection to determine direction
authorBart Polot <bart@net.in.tum.de>
Mon, 27 Apr 2015 19:14:31 +0000 (19:14 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 27 Apr 2015 19:14:31 +0000 (19:14 +0000)
src/cadet/gnunet-service-cadet_tunnel.c

index 15d677ca41a72f155850dd722cb7ed91a098f4dd..04170135112423dfd841bacd0e8beece4e9582b3 100644 (file)
@@ -1672,7 +1672,7 @@ send_kx (struct CadetTunnel *t,
       GNUNET_assert (0);
   }
 
-  fwd = GCC_is_origin (t->connection_head->c, GNUNET_YES);
+  fwd = GCC_is_origin (c, GNUNET_YES);
 
   return GCC_send_prebuilt_message (&msg->header, type, 0, c,
                                     fwd, GNUNET_YES,