aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r--src/core/core_api.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index 57d01f6bb..0de64869b 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -864,8 +864,8 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
864 ats_count = ntohl (cnm->ats_count); 864 ats_count = ntohl (cnm->ats_count);
865 if ((msize != 865 if ((msize !=
866 sizeof (struct ConnectNotifyMessage) + 866 sizeof (struct ConnectNotifyMessage) +
867 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)) || 867 ats_count * sizeof (struct GNUNET_ATS_Information)) ||
868 (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR != 868 (GNUNET_ATS_ARRAY_TERMINATOR !=
869 ntohl ((&cnm->ats)[ats_count].type))) 869 ntohl ((&cnm->ats)[ats_count].type)))
870 { 870 {
871 GNUNET_break (0); 871 GNUNET_break (0);
@@ -945,9 +945,9 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
945 ats_count = ntohl (ntm->ats_count); 945 ats_count = ntohl (ntm->ats_count);
946 if ((msize < 946 if ((msize <
947 sizeof (struct NotifyTrafficMessage) + 947 sizeof (struct NotifyTrafficMessage) +
948 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) + 948 ats_count * sizeof (struct GNUNET_ATS_Information) +
949 sizeof (struct GNUNET_MessageHeader)) || 949 sizeof (struct GNUNET_MessageHeader)) ||
950 (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR != 950 (GNUNET_ATS_ARRAY_TERMINATOR !=
951 ntohl ((&ntm->ats)[ats_count].type))) 951 ntohl ((&ntm->ats)[ats_count].type)))
952 { 952 {
953 GNUNET_break (0); 953 GNUNET_break (0);
@@ -970,7 +970,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
970 if ((GNUNET_NO == h->inbound_hdr_only) && 970 if ((GNUNET_NO == h->inbound_hdr_only) &&
971 (msize != 971 (msize !=
972 ntohs (em->size) + sizeof (struct NotifyTrafficMessage) + 972 ntohs (em->size) + sizeof (struct NotifyTrafficMessage) +
973 +ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information))) 973 +ats_count * sizeof (struct GNUNET_ATS_Information)))
974 { 974 {
975 GNUNET_break (0); 975 GNUNET_break (0);
976 reconnect_later (h); 976 reconnect_later (h);
@@ -1014,9 +1014,9 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
1014 ats_count = ntohl (ntm->ats_count); 1014 ats_count = ntohl (ntm->ats_count);
1015 if ((msize < 1015 if ((msize <
1016 sizeof (struct NotifyTrafficMessage) + 1016 sizeof (struct NotifyTrafficMessage) +
1017 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information) + 1017 ats_count * sizeof (struct GNUNET_ATS_Information) +
1018 sizeof (struct GNUNET_MessageHeader)) || 1018 sizeof (struct GNUNET_MessageHeader)) ||
1019 (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR != 1019 (GNUNET_ATS_ARRAY_TERMINATOR !=
1020 ntohl ((&ntm->ats)[ats_count].type))) 1020 ntohl ((&ntm->ats)[ats_count].type)))
1021 { 1021 {
1022 GNUNET_break (0); 1022 GNUNET_break (0);
@@ -1039,7 +1039,7 @@ main_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg)
1039 if ((GNUNET_NO == h->outbound_hdr_only) && 1039 if ((GNUNET_NO == h->outbound_hdr_only) &&
1040 (msize != 1040 (msize !=
1041 ntohs (em->size) + sizeof (struct NotifyTrafficMessage) + 1041 ntohs (em->size) + sizeof (struct NotifyTrafficMessage) +
1042 ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information))) 1042 ats_count * sizeof (struct GNUNET_ATS_Information)))
1043 { 1043 {
1044 GNUNET_break (0); 1044 GNUNET_break (0);
1045 reconnect_later (h); 1045 reconnect_later (h);