aboutsummaryrefslogtreecommitdiff
path: root/src/service/transport/gnunet-service-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/transport/gnunet-service-transport.c')
-rw-r--r--src/service/transport/gnunet-service-transport.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/service/transport/gnunet-service-transport.c b/src/service/transport/gnunet-service-transport.c
index a4850fa26..9562c1f68 100644
--- a/src/service/transport/gnunet-service-transport.c
+++ b/src/service/transport/gnunet-service-transport.c
@@ -1774,7 +1774,7 @@ struct DistanceVector
1774 struct GNUNET_CRYPTO_EcdhePublicKey ephemeral_key; 1774 struct GNUNET_CRYPTO_EcdhePublicKey ephemeral_key;
1775 1775
1776 /** 1776 /**
1777 * Master secret for the setup of the Key material for the backchannel. 1777 * Master secret for the setup of the Key material for the backchannel.
1778 */ 1778 */
1779 struct GNUNET_HashCode *km; 1779 struct GNUNET_HashCode *km;
1780}; 1780};
@@ -3089,8 +3089,8 @@ free_pending_message (struct PendingMessage *pm)
3089 GNUNET_assert (pm == pm->qe->pm); 3089 GNUNET_assert (pm == pm->qe->pm);
3090 pm->qe->pm = NULL; 3090 pm->qe->pm = NULL;
3091 GNUNET_CONTAINER_DLL_remove (qe->queue->queue_head, 3091 GNUNET_CONTAINER_DLL_remove (qe->queue->queue_head,
3092 qe->queue->queue_tail, 3092 qe->queue->queue_tail,
3093 qe); 3093 qe);
3094 GNUNET_free (qe); 3094 GNUNET_free (qe);
3095 } 3095 }
3096 if (NULL != pm->bpm) 3096 if (NULL != pm->bpm)
@@ -3102,8 +3102,8 @@ free_pending_message (struct PendingMessage *pm)
3102 3102
3103 qe->pm = NULL; 3103 qe->pm = NULL;
3104 GNUNET_CONTAINER_DLL_remove (qe->queue->queue_head, 3104 GNUNET_CONTAINER_DLL_remove (qe->queue->queue_head,
3105 qe->queue->queue_tail, 3105 qe->queue->queue_tail,
3106 qe); 3106 qe);
3107 GNUNET_free (qe); 3107 GNUNET_free (qe);
3108 } 3108 }
3109 GNUNET_free (pm->bpm); 3109 GNUNET_free (pm->bpm);
@@ -8629,9 +8629,10 @@ start_address_validation (const struct GNUNET_PeerIdentity *pid,
8629 8629
8630static void 8630static void
8631hello_for_incoming_cb (void *cls, 8631hello_for_incoming_cb (void *cls,
8632 const struct GNUNET_PeerIdentity *pid,
8632 const char *uri) 8633 const char *uri)
8633{ 8634{
8634 const struct GNUNET_PeerIdentity *peer = cls; 8635 (void) cls;
8635 int pfx_len; 8636 int pfx_len;
8636 const char *eou; 8637 const char *eou;
8637 char *address; 8638 char *address;
@@ -8650,7 +8651,7 @@ hello_for_incoming_cb (void *cls,
8650 "helo for client %s\n", 8651 "helo for client %s\n",
8651 address); 8652 address);
8652 8653
8653 start_address_validation (peer, address); 8654 start_address_validation (pid, address);
8654 GNUNET_free (address); 8655 GNUNET_free (address);
8655} 8656}
8656 8657
@@ -8681,9 +8682,8 @@ handle_hello_for_incoming (void *cls,
8681 return; 8682 return;
8682 builder = GNUNET_HELLO_builder_from_msg (hello); 8683 builder = GNUNET_HELLO_builder_from_msg (hello);
8683 GNUNET_HELLO_builder_iterate (builder, 8684 GNUNET_HELLO_builder_iterate (builder,
8684 (struct GNUNET_PeerIdentity *) peer,
8685 hello_for_incoming_cb, 8685 hello_for_incoming_cb,
8686 (struct GNUNET_PeerIdentity *) peer); 8686 NULL);
8687 GNUNET_HELLO_builder_free (builder); 8687 GNUNET_HELLO_builder_free (builder);
8688} 8688}
8689 8689
@@ -11263,9 +11263,10 @@ handle_suggest_cancel (void *cls, const struct ExpressPreferenceMessage *msg)
11263 11263
11264static void 11264static void
11265hello_for_client_cb (void *cls, 11265hello_for_client_cb (void *cls,
11266 const struct GNUNET_PeerIdentity *pid,
11266 const char *uri) 11267 const char *uri)
11267{ 11268{
11268 const struct GNUNET_PeerIdentity *peer = cls; 11269 (void) cls;
11269 int pfx_len; 11270 int pfx_len;
11270 const char *eou; 11271 const char *eou;
11271 char *address; 11272 char *address;
@@ -11284,7 +11285,7 @@ hello_for_client_cb (void *cls,
11284 "hello for client %s\n", 11285 "hello for client %s\n",
11285 address); 11286 address);
11286 11287
11287 start_address_validation (peer, address); 11288 start_address_validation (pid, address);
11288 GNUNET_free (address); 11289 GNUNET_free (address);
11289} 11290}
11290 11291
@@ -11316,9 +11317,8 @@ handle_hello_for_client (void *cls,
11316 return; 11317 return;
11317 builder = GNUNET_HELLO_builder_from_msg (hello); 11318 builder = GNUNET_HELLO_builder_from_msg (hello);
11318 GNUNET_HELLO_builder_iterate (builder, 11319 GNUNET_HELLO_builder_iterate (builder,
11319 (struct GNUNET_PeerIdentity *) peer,
11320 hello_for_client_cb, 11320 hello_for_client_cb,
11321 (struct GNUNET_PeerIdentity *) peer); 11321 NULL);
11322 GNUNET_HELLO_builder_free (builder); 11322 GNUNET_HELLO_builder_free (builder);
11323} 11323}
11324 11324