aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-12-19 13:02:12 +0000
committerBart Polot <bart@net.in.tum.de>2012-12-19 13:02:12 +0000
commit8a1843d0467591bd77679d7c5135d0ca8f3c3067 (patch)
treea7324b285fc98cf09d38eff11cec6c1a36d337bb /src/core
parent13983262216a9b0450e4e6af79e304042087744c (diff)
downloadgnunet-8a1843d0467591bd77679d7c5135d0ca8f3c3067.tar.gz
gnunet-8a1843d0467591bd77679d7c5135d0ca8f3c3067.zip
-do not permit queueing of messages that are too big
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core_api.c5
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",