gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r36403 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r36403 - gnunet/src/cadet
Date: Fri, 2 Oct 2015 05:37:27 +0200

Author: bartpolot
Date: 2015-10-02 05:37:27 +0200 (Fri, 02 Oct 2015)
New Revision: 36403

Modified:
   gnunet/src/cadet/gnunet-service-cadet_local.c
Log:
- use correct hash type

Modified: gnunet/src/cadet/gnunet-service-cadet_local.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_local.c       2015-10-02 03:37:26 UTC 
(rev 36402)
+++ gnunet/src/cadet/gnunet-service-cadet_local.c       2015-10-02 03:37:27 UTC 
(rev 36403)
@@ -944,7 +944,7 @@
 iter_channel (void *cls, struct CadetChannel *ch)
 {
   struct GNUNET_CADET_LocalInfoTunnel *msg = cls;
-  struct GNUNET_HashCode *h = (struct GNUNET_HashCode *) &msg[1];
+  struct GNUNET_CADET_Hash *h = (struct GNUNET_CADET_Hash *) &msg[1];
   CADET_ChannelNumber *chn = (CADET_ChannelNumber *) &h[msg->connections];
 
   chn[msg->channels] = htonl (GCCH_get_id (ch));
@@ -1018,12 +1018,13 @@
   resp = GNUNET_malloc (size);
   resp->header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNEL);
   resp->header.size = htons (size);
+  resp->destination = msg->peer;
+  /* Do not interleave with iterators, iter_channel needs conn in HBO */
   GCT_iterate_connections (t, &iter_connection, resp);
   GCT_iterate_channels (t, &iter_channel, resp);
-  /* Do not interleave with iterators, iter_channel needs conn in HBO */
-  resp->destination = msg->peer;
   resp->connections = htonl (resp->connections);
   resp->channels = htonl (resp->channels);
+  /* Do not interleave end */
   resp->cstate = htons (GCT_get_cstate (t));
   resp->estate = htons (GCT_get_estate (t));
   GNUNET_SERVER_notification_context_unicast (nc, c->handle,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]