aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-10-02 03:37:27 +0000
committerBart Polot <bart@net.in.tum.de>2015-10-02 03:37:27 +0000
commit97be2db5f3765d3d8dd728b644cc2dbbfd10564d (patch)
tree47bb1fa00321475efa1f9d1813a47a6e83c1f43c /src/cadet
parent842b97a0c63763d22b372cc28f561fdf6cdd86a2 (diff)
downloadgnunet-97be2db5f3765d3d8dd728b644cc2dbbfd10564d.tar.gz
gnunet-97be2db5f3765d3d8dd728b644cc2dbbfd10564d.zip
- use correct hash type
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_local.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c
index 79694a242..f755b8813 100644
--- a/src/cadet/gnunet-service-cadet_local.c
+++ b/src/cadet/gnunet-service-cadet_local.c
@@ -944,7 +944,7 @@ static void
944iter_channel (void *cls, struct CadetChannel *ch) 944iter_channel (void *cls, struct CadetChannel *ch)
945{ 945{
946 struct GNUNET_CADET_LocalInfoTunnel *msg = cls; 946 struct GNUNET_CADET_LocalInfoTunnel *msg = cls;
947 struct GNUNET_HashCode *h = (struct GNUNET_HashCode *) &msg[1]; 947 struct GNUNET_CADET_Hash *h = (struct GNUNET_CADET_Hash *) &msg[1];
948 CADET_ChannelNumber *chn = (CADET_ChannelNumber *) &h[msg->connections]; 948 CADET_ChannelNumber *chn = (CADET_ChannelNumber *) &h[msg->connections];
949 949
950 chn[msg->channels] = htonl (GCCH_get_id (ch)); 950 chn[msg->channels] = htonl (GCCH_get_id (ch));
@@ -1018,12 +1018,13 @@ handle_show_tunnel (void *cls, struct GNUNET_SERVER_Client *client,
1018 resp = GNUNET_malloc (size); 1018 resp = GNUNET_malloc (size);
1019 resp->header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNEL); 1019 resp->header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNEL);
1020 resp->header.size = htons (size); 1020 resp->header.size = htons (size);
1021 resp->destination = msg->peer;
1022 /* Do not interleave with iterators, iter_channel needs conn in HBO */
1021 GCT_iterate_connections (t, &iter_connection, resp); 1023 GCT_iterate_connections (t, &iter_connection, resp);
1022 GCT_iterate_channels (t, &iter_channel, resp); 1024 GCT_iterate_channels (t, &iter_channel, resp);
1023 /* Do not interleave with iterators, iter_channel needs conn in HBO */
1024 resp->destination = msg->peer;
1025 resp->connections = htonl (resp->connections); 1025 resp->connections = htonl (resp->connections);
1026 resp->channels = htonl (resp->channels); 1026 resp->channels = htonl (resp->channels);
1027 /* Do not interleave end */
1027 resp->cstate = htons (GCT_get_cstate (t)); 1028 resp->cstate = htons (GCT_get_cstate (t));
1028 resp->estate = htons (GCT_get_estate (t)); 1029 resp->estate = htons (GCT_get_estate (t));
1029 GNUNET_SERVER_notification_context_unicast (nc, c->handle, 1030 GNUNET_SERVER_notification_context_unicast (nc, c->handle,