diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_local.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c index b612be6dd..10e1a0ab4 100644 --- a/src/cadet/gnunet-service-cadet_local.c +++ b/src/cadet/gnunet-service-cadet_local.c | |||
@@ -771,7 +771,7 @@ get_all_tunnels_iterator (void *cls, | |||
771 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNELS); | 771 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNELS); |
772 | msg.destination = *peer; | 772 | msg.destination = *peer; |
773 | msg.channels = htonl (GCT_count_channels (t)); | 773 | msg.channels = htonl (GCT_count_channels (t)); |
774 | msg.connections = htonl (GCT_count_connections (t)); | 774 | msg.connections = htonl (GCT_count_any_connections (t)); |
775 | msg.cstate = htons ((uint16_t) GCT_get_cstate (t)); | 775 | msg.cstate = htons ((uint16_t) GCT_get_cstate (t)); |
776 | msg.estate = htons ((uint16_t) GCT_get_estate (t)); | 776 | msg.estate = htons ((uint16_t) GCT_get_estate (t)); |
777 | 777 | ||
@@ -900,7 +900,7 @@ handle_show_tunnel (void *cls, struct GNUNET_SERVER_Client *client, | |||
900 | 900 | ||
901 | /* Initialize context */ | 901 | /* Initialize context */ |
902 | ch_n = GCT_count_channels (t); | 902 | ch_n = GCT_count_channels (t); |
903 | c_n = GCT_count_connections (t); | 903 | c_n = GCT_count_any_connections (t); |
904 | 904 | ||
905 | size = sizeof (struct GNUNET_CADET_LocalInfoTunnel); | 905 | size = sizeof (struct GNUNET_CADET_LocalInfoTunnel); |
906 | size += c_n * sizeof (struct GNUNET_CADET_Hash); | 906 | size += c_n * sizeof (struct GNUNET_CADET_Hash); |