aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.c')
-rw-r--r--src/cadet/gnunet-service-cadet_channel.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c
index 1e898c1eb..bd95428be 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -679,9 +679,8 @@ GCCH_channel_local_new (struct CadetClient *owner,
679 GCCH_hash_port (&ch->h_port, 679 GCCH_hash_port (&ch->h_port,
680 port, 680 port,
681 GCP_get_id (destination)); 681 GCP_get_id (destination));
682 if (0 == memcmp (&my_full_id, 682 if (0 == GNUNET_memcmp (&my_full_id,
683 GCP_get_id (destination), 683 GCP_get_id (destination)))
684 sizeof (struct GNUNET_PeerIdentity)))
685 { 684 {
686 struct OpenPort *op; 685 struct OpenPort *op;
687 686
@@ -1185,9 +1184,8 @@ GCCH_handle_channel_open_ack (struct CadetChannel *ch,
1185 GNUNET_break_op (0); 1184 GNUNET_break_op (0);
1186 return; 1185 return;
1187 } 1186 }
1188 if (0 != memcmp (&ch->port, 1187 if (0 != GNUNET_memcmp (&ch->port,
1189 port, 1188 port))
1190 sizeof (struct GNUNET_HashCode)))
1191 { 1189 {
1192 /* Other peer failed to provide the right port, 1190 /* Other peer failed to provide the right port,
1193 refuse connection. */ 1191 refuse connection. */
@@ -1612,9 +1610,8 @@ handle_matching_ack (struct CadetChannel *ch,
1612 (NULL != cti) ) 1610 (NULL != cti) )
1613 { 1611 {
1614 GCC_ack_observed (cti); 1612 GCC_ack_observed (cti);
1615 if (0 == memcmp (cti, 1613 if (0 == GNUNET_memcmp (cti,
1616 &crm->connection_taken, 1614 &crm->connection_taken))
1617 sizeof (struct GNUNET_CADET_ConnectionTunnelIdentifier)))
1618 { 1615 {
1619 GCC_latency_observed (cti, 1616 GCC_latency_observed (cti,
1620 GNUNET_TIME_absolute_get_duration (crm->first_transmission_time)); 1617 GNUNET_TIME_absolute_get_duration (crm->first_transmission_time));