diff options
Diffstat (limited to 'src/ats/ats_api_performance.c')
-rw-r--r-- | src/ats/ats_api_performance.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c index 2cae8a51f..c3a5d2bed 100644 --- a/src/ats/ats_api_performance.c +++ b/src/ats/ats_api_performance.c | |||
@@ -250,7 +250,7 @@ process_pi_message (struct GNUNET_ATS_PerformanceHandle *ph, | |||
250 | const struct GNUNET_MessageHeader *msg) | 250 | const struct GNUNET_MessageHeader *msg) |
251 | { | 251 | { |
252 | const struct PeerInformationMessage *pi; | 252 | const struct PeerInformationMessage *pi; |
253 | const struct GNUNET_TRANSPORT_ATS_Information *atsi; | 253 | const struct GNUNET_ATS_Information *atsi; |
254 | const char *address; | 254 | const char *address; |
255 | const char *plugin_name; | 255 | const char *plugin_name; |
256 | uint16_t address_length; | 256 | uint16_t address_length; |
@@ -271,14 +271,14 @@ process_pi_message (struct GNUNET_ATS_PerformanceHandle *ph, | |||
271 | ats_count = ntohl (pi->ats_count); | 271 | ats_count = ntohl (pi->ats_count); |
272 | address_length = ntohs (pi->address_length); | 272 | address_length = ntohs (pi->address_length); |
273 | plugin_name_length = ntohs (pi->plugin_name_length); | 273 | plugin_name_length = ntohs (pi->plugin_name_length); |
274 | atsi = (const struct GNUNET_TRANSPORT_ATS_Information*) &pi[1]; | 274 | atsi = (const struct GNUNET_ATS_Information*) &pi[1]; |
275 | address = (const char*) &atsi[ats_count]; | 275 | address = (const char*) &atsi[ats_count]; |
276 | plugin_name = &address[address_length]; | 276 | plugin_name = &address[address_length]; |
277 | if ( (address_length + | 277 | if ( (address_length + |
278 | plugin_name_length + | 278 | plugin_name_length + |
279 | ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) + | 279 | ats_count * sizeof (struct GNUNET_ATS_Information) + |
280 | sizeof (struct PeerInformationMessage) != ntohs (msg->size)) || | 280 | sizeof (struct PeerInformationMessage) != ntohs (msg->size)) || |
281 | (ats_count > GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_TRANSPORT_ATS_Information)) || | 281 | (ats_count > GNUNET_SERVER_MAX_MESSAGE_SIZE / sizeof (struct GNUNET_ATS_Information)) || |
282 | (plugin_name[plugin_name_length - 1] != '\0') ) | 282 | (plugin_name[plugin_name_length - 1] != '\0') ) |
283 | { | 283 | { |
284 | GNUNET_break (0); | 284 | GNUNET_break (0); |