diff options
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r-- | src/core/core_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index d2f5119ac..ffddc73b2 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -1286,6 +1286,11 @@ GNUNET_CORE_notify_transmit_ready (struct GNUNET_CORE_Handle *handle, int cork, | |||
1286 | struct PeerRecord *pr; | 1286 | struct PeerRecord *pr; |
1287 | struct GNUNET_CORE_TransmitHandle *th; | 1287 | struct GNUNET_CORE_TransmitHandle *th; |
1288 | 1288 | ||
1289 | if (notify_size > GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE) | ||
1290 | { | ||
1291 | GNUNET_break (0); | ||
1292 | return NULL; | ||
1293 | } | ||
1289 | GNUNET_assert (NULL != notify); | 1294 | GNUNET_assert (NULL != notify); |
1290 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1295 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1291 | "Asking core for transmission of %u bytes to `%s'\n", | 1296 | "Asking core for transmission of %u bytes to `%s'\n", |