aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/gnunet-service-fs.c1
-rw-r--r--src/transport/gnunet-service-transport.c1
-rw-r--r--src/transport/plugin_transport.h6
3 files changed, 8 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c
index 83bbea183..6b56784db 100644
--- a/src/fs/gnunet-service-fs.c
+++ b/src/fs/gnunet-service-fs.c
@@ -1656,6 +1656,7 @@ transmit_to_peer (void *cls,
1656 GNUNET_PEER_change_rc (mb->target_list[i], -1); 1656 GNUNET_PEER_change_rc (mb->target_list[i], -1);
1657 mb->target_list[i] = 0; 1657 mb->target_list[i] = 0;
1658 mb->used_targets++; 1658 mb->used_targets++;
1659 memset (&migm, 0, sizeof (migm));
1659 migm.header.size = htons (sizeof (migm) + mb->size); 1660 migm.header.size = htons (sizeof (migm) + mb->size);
1660 migm.header.type = htons (GNUNET_MESSAGE_TYPE_FS_PUT); 1661 migm.header.type = htons (GNUNET_MESSAGE_TYPE_FS_PUT);
1661 migm.type = htonl (mb->type); 1662 migm.type = htonl (mb->type);
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 181d26845..a9a06ac77 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -5063,6 +5063,7 @@ create_environment (struct TransportPlugin *plug)
5063 plug->env.cfg = cfg; 5063 plug->env.cfg = cfg;
5064 plug->env.sched = sched; 5064 plug->env.sched = sched;
5065 plug->env.my_identity = &my_identity; 5065 plug->env.my_identity = &my_identity;
5066 plug->env.our_hello = &our_hello;
5066 plug->env.cls = plug; 5067 plug->env.cls = plug;
5067 plug->env.receive = &plugin_env_receive; 5068 plug->env.receive = &plugin_env_receive;
5068 plug->env.notify_address = &plugin_env_notify_address; 5069 plug->env.notify_address = &plugin_env_notify_address;
diff --git a/src/transport/plugin_transport.h b/src/transport/plugin_transport.h
index d3dc52f32..8c72f3242 100644
--- a/src/transport/plugin_transport.h
+++ b/src/transport/plugin_transport.h
@@ -181,6 +181,12 @@ struct GNUNET_TRANSPORT_PluginEnvironment
181 const struct GNUNET_PeerIdentity *my_identity; 181 const struct GNUNET_PeerIdentity *my_identity;
182 182
183 /** 183 /**
184 * Pointer (!) to our HELLO message. Note that the address
185 * referred to "*our_hello" might change over time.
186 */
187 const struct GNUNET_HELLO_Message **our_hello;
188
189 /**
184 * Closure for the various callbacks. 190 * Closure for the various callbacks.
185 */ 191 */
186 void *cls; 192 void *cls;