diff options
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r-- | src/core/core_api.c | 4 |
1 files changed, 2 insertions, 2 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"); |