diff options
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index cff967b19..b7704e512 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -473,7 +473,7 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg) | |||
473 | GNUNET_break (0); | 473 | GNUNET_break (0); |
474 | break; | 474 | break; |
475 | } | 475 | } |
476 | ats = (const struct GNUNET_ATS_Information*) &cim[1]; | 476 | ats = (const struct GNUNET_ATS_Information *) &cim[1]; |
477 | #if DEBUG_TRANSPORT_API | 477 | #if DEBUG_TRANSPORT_API |
478 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Receiving `%s' message for `%4s'.\n", | 478 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Receiving `%s' message for `%4s'.\n", |
479 | "CONNECT", GNUNET_i2s (&cim->id)); | 479 | "CONNECT", GNUNET_i2s (&cim->id)); |
@@ -547,7 +547,7 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg) | |||
547 | } | 547 | } |
548 | im = (const struct InboundMessage *) msg; | 548 | im = (const struct InboundMessage *) msg; |
549 | ats_count = ntohl (im->ats_count); | 549 | ats_count = ntohl (im->ats_count); |
550 | ats = (const struct GNUNET_ATS_Information*) &im[1]; | 550 | ats = (const struct GNUNET_ATS_Information *) &im[1]; |
551 | imm = (const struct GNUNET_MessageHeader *) &ats[ats_count]; | 551 | imm = (const struct GNUNET_MessageHeader *) &ats[ats_count]; |
552 | if (ntohs (imm->size) + sizeof (struct InboundMessage) + | 552 | if (ntohs (imm->size) + sizeof (struct InboundMessage) + |
553 | ats_count * sizeof (struct GNUNET_ATS_Information) != size) | 553 | ats_count * sizeof (struct GNUNET_ATS_Information) != size) |