diff options
Diffstat (limited to 'src/core/core_api_iterate_peers.c')
-rw-r--r-- | src/core/core_api_iterate_peers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c index 7bf40a678..7b28842fd 100644 --- a/src/core/core_api_iterate_peers.c +++ b/src/core/core_api_iterate_peers.c | |||
@@ -101,7 +101,7 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg) | |||
101 | ats_count = ntohl (connect_message->ats_count); | 101 | ats_count = ntohl (connect_message->ats_count); |
102 | if (msize != | 102 | if (msize != |
103 | sizeof (struct ConnectNotifyMessage) + | 103 | sizeof (struct ConnectNotifyMessage) + |
104 | ats_count * sizeof (struct GNUNET_ATS_Information)) | 104 | ats_count * sizeof (struct GNUNET_ATS_Information)) |
105 | { | 105 | { |
106 | GNUNET_break (0); | 106 | GNUNET_break (0); |
107 | if (request_context->peer_cb != NULL) | 107 | if (request_context->peer_cb != NULL) |
@@ -113,8 +113,8 @@ receive_info (void *cls, const struct GNUNET_MessageHeader *msg) | |||
113 | /* Normal case */ | 113 | /* Normal case */ |
114 | if (request_context->peer_cb != NULL) | 114 | if (request_context->peer_cb != NULL) |
115 | request_context->peer_cb (request_context->cb_cls, &connect_message->peer, | 115 | request_context->peer_cb (request_context->cb_cls, &connect_message->peer, |
116 | (const struct GNUNET_ATS_Information *) &connect_message[1], | 116 | (const struct GNUNET_ATS_Information *) |
117 | ats_count); | 117 | &connect_message[1], ats_count); |
118 | GNUNET_CLIENT_receive (request_context->client, &receive_info, | 118 | GNUNET_CLIENT_receive (request_context->client, &receive_info, |
119 | request_context, GNUNET_TIME_UNIT_FOREVER_REL); | 119 | request_context, GNUNET_TIME_UNIT_FOREVER_REL); |
120 | } | 120 | } |