aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_tunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_tunnel.c')
-rw-r--r--src/cadet/gnunet-service-cadet_tunnel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c
index de40b2bbb..80b116035 100644
--- a/src/cadet/gnunet-service-cadet_tunnel.c
+++ b/src/cadet/gnunet-service-cadet_tunnel.c
@@ -476,8 +476,8 @@ get_channel_buffer (const struct CadetTChannel *tch)
476{ 476{
477 int fwd; 477 int fwd;
478 478
479 /* If channel is outgoing, is origin in the FWD direction and fwd is YES */ 479 /* If channel is incoming, is terminal in the FWD direction and fwd is YES */
480 fwd = GCCH_is_origin (tch->ch, GNUNET_YES); 480 fwd = GCCH_is_terminal (tch->ch, GNUNET_YES);
481 481
482 return GCCH_get_buffer (tch->ch, fwd); 482 return GCCH_get_buffer (tch->ch, fwd);
483} 483}
@@ -2823,6 +2823,7 @@ GCT_get_channels_buffer (struct CadetTunnel *t)
2823 if (NULL == t->channel_head) 2823 if (NULL == t->channel_head)
2824 { 2824 {
2825 /* Probably getting buffer for a channel create/handshake. */ 2825 /* Probably getting buffer for a channel create/handshake. */
2826 LOG (GNUNET_ERROR_TYPE_DEBUG, " no channels, allow max\n");
2826 return 64; 2827 return 64;
2827 } 2828 }
2828 2829