aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet-new_channel.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-23 15:03:29 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-23 15:03:29 +0100
commita08d1c815cb62b194c4dcbacbc4fdf97376482d4 (patch)
treebe9beb38b9105c7d63f27c774fd6190525f1c51b /src/cadet/gnunet-service-cadet-new_channel.c
parentb25a64c10b76c48ce1eda6bc923ff40a82f0a673 (diff)
downloadgnunet-a08d1c815cb62b194c4dcbacbc4fdf97376482d4.tar.gz
gnunet-a08d1c815cb62b194c4dcbacbc4fdf97376482d4.zip
do not send duplicate LOCAL_CHANNEL_CREATE message
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_channel.c')
-rw-r--r--src/cadet/gnunet-service-cadet-new_channel.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c
index 673921458..45609107b 100644
--- a/src/cadet/gnunet-service-cadet-new_channel.c
+++ b/src/cadet/gnunet-service-cadet-new_channel.c
@@ -804,8 +804,6 @@ void
804GCCH_bind (struct CadetChannel *ch, 804GCCH_bind (struct CadetChannel *ch,
805 struct CadetClient *c) 805 struct CadetClient *c)
806{ 806{
807 struct GNUNET_MQ_Envelope *env;
808 struct GNUNET_CADET_LocalChannelCreateMessage *tcm;
809 uint32_t options; 807 uint32_t options;
810 808
811 LOG (GNUNET_ERROR_TYPE_DEBUG, 809 LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -850,17 +848,6 @@ GCCH_bind (struct CadetChannel *ch,
850 ch); 848 ch);
851 } 849 }
852 /* give client it's initial supply of ACKs */ 850 /* give client it's initial supply of ACKs */
853 env = GNUNET_MQ_msg (tcm,
854 GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE);
855 tcm->ccn = ch->ccn_dest;
856 if (GNUNET_YES == ch->is_loopback)
857 tcm->peer = my_full_id;
858 else
859 tcm->peer = *GCP_get_id (GCT_get_destination (ch->t));
860 tcm->port = ch->port;
861 tcm->opt = htonl (options);
862 GSC_send_to_client (ch->dest,
863 env);
864 for (unsigned int i=0;i<ch->max_pending_messages;i++) 851 for (unsigned int i=0;i<ch->max_pending_messages;i++)
865 send_ack_to_client (ch, 852 send_ack_to_client (ch,
866 ch->dest); 853 ch->dest);