use correct channel when switching
authorChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 17:14:55 +0000 (18:14 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 10 Mar 2017 17:14:55 +0000 (18:14 +0100)
src/pt/gnunet-daemon-pt.c

index 54556cc52c3ea4462025929ea9bd8745ebff31ab..9bd1fb16bb7da4d1b1cebb7840e59995c165d541 100644 (file)
@@ -1015,7 +1015,7 @@ cadet_channel_end_cb (void *cls,
     GNUNET_CONTAINER_DLL_insert (alt->receive_queue_head,
                                  alt->receive_queue_tail,
                                  rc);
-    GNUNET_MQ_send (GNUNET_CADET_get_mq (exit->cadet_channel),
+    GNUNET_MQ_send (GNUNET_CADET_get_mq (alt->cadet_channel),
                     GNUNET_MQ_env_copy (rc->env));
   }
   try_open_exit ();