From 28b25959ed7a476053dda2f2c24a9d5b9b477eaf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Jan 2017 20:09:37 +0100 Subject: [PATCH] handle loopback in GCCH_2s --- src/cadet/gnunet-service-cadet-new_channel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c index 4d4be93d7..0d2545fb4 100644 --- a/src/cadet/gnunet-service-cadet-new_channel.c +++ b/src/cadet/gnunet-service-cadet-new_channel.c @@ -337,7 +337,9 @@ GCCH_2s (const struct CadetChannel *ch) GNUNET_snprintf (buf, sizeof (buf), "Channel %s:%s ctn:%X(%X/%X)", - GNUNET_i2s (GCP_get_id (GCT_get_destination (ch->t))), + (GNUNET_YES == ch->is_loopback) + ? "loopback" + : GNUNET_i2s (GCP_get_id (GCT_get_destination (ch->t))), GNUNET_h2s (&ch->port), ch->ctn, ntohl (ch->ccn_owner.channel_of_client), -- 2.25.1