diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 4 | ||||
-rw-r--r-- | src/core/gnunet-service-core.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index fd789295d..ed8ce364d 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -321,7 +321,7 @@ core_mq_send_impl (struct GNUNET_MQ_Handle *mq, | |||
321 | 321 | ||
322 | /* check message size for sanity */ | 322 | /* check message size for sanity */ |
323 | msize = ntohs (msg->size); | 323 | msize = ntohs (msg->size); |
324 | if (msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE - sizeof (struct SendMessage)) | 324 | if (msize >= GNUNET_MAX_MESSAGE_SIZE - sizeof (struct SendMessage)) |
325 | { | 325 | { |
326 | GNUNET_break (0); | 326 | GNUNET_break (0); |
327 | GNUNET_MQ_impl_send_continue (mq); | 327 | GNUNET_MQ_impl_send_continue (mq); |
@@ -796,7 +796,7 @@ GNUNET_CORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
796 | h->handlers = GNUNET_MQ_copy_handlers (handlers); | 796 | h->handlers = GNUNET_MQ_copy_handlers (handlers); |
797 | h->hcnt = GNUNET_MQ_count_handlers (handlers); | 797 | h->hcnt = GNUNET_MQ_count_handlers (handlers); |
798 | GNUNET_assert (h->hcnt < | 798 | GNUNET_assert (h->hcnt < |
799 | (GNUNET_SERVER_MAX_MESSAGE_SIZE - | 799 | (GNUNET_MAX_MESSAGE_SIZE - |
800 | sizeof (struct InitMessage)) / sizeof (uint16_t)); | 800 | sizeof (struct InitMessage)) / sizeof (uint16_t)); |
801 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 801 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
802 | "Connecting to CORE service\n"); | 802 | "Connecting to CORE service\n"); |
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 31b91f12f..625bf9655 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -807,7 +807,7 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, | |||
807 | { | 807 | { |
808 | size_t size = msize + sizeof (struct NotifyTrafficMessage); | 808 | size_t size = msize + sizeof (struct NotifyTrafficMessage); |
809 | 809 | ||
810 | if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 810 | if (size >= GNUNET_MAX_MESSAGE_SIZE) |
811 | { | 811 | { |
812 | GNUNET_break (0); | 812 | GNUNET_break (0); |
813 | return; | 813 | return; |