diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-27 07:40:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-27 07:40:39 +0000 |
commit | 8d6058c34df98102009ca0a9456da0bcb06d39f2 (patch) | |
tree | e93287bf9a78df33dc454005418548a3b1bee52b /src/fragmentation/fragmentation.c | |
parent | 22dafb003418aab11e036230b3761116c397d239 (diff) | |
download | gnunet-8d6058c34df98102009ca0a9456da0bcb06d39f2.tar.gz gnunet-8d6058c34df98102009ca0a9456da0bcb06d39f2.zip |
fix
Diffstat (limited to 'src/fragmentation/fragmentation.c')
-rw-r--r-- | src/fragmentation/fragmentation.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c index 77b4c2e49..e97b0f763 100644 --- a/src/fragmentation/fragmentation.c +++ b/src/fragmentation/fragmentation.c | |||
@@ -18,7 +18,7 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file src/fragmentation/fragmentation_new.c | 21 | * @file src/fragmentation/fragmentation.c |
22 | * @brief library to help fragment messages | 22 | * @brief library to help fragment messages |
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | */ | 24 | */ |
@@ -249,11 +249,11 @@ GNUNET_FRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats, | |||
249 | _("# messages fragmented"), | 249 | _("# messages fragmented"), |
250 | 1, GNUNET_NO); | 250 | 1, GNUNET_NO); |
251 | GNUNET_assert (mtu >= 1024 + sizeof (struct FragmentHeader)); | 251 | GNUNET_assert (mtu >= 1024 + sizeof (struct FragmentHeader)); |
252 | size = ntohs (msg->size); | 252 | size = ntohs (msg->size); |
253 | GNUNET_STATISTICS_update (stats, | 253 | GNUNET_STATISTICS_update (stats, |
254 | _("# total size of fragmented messages"), | 254 | _("# total size of fragmented messages"), |
255 | size, GNUNET_NO); | 255 | size, GNUNET_NO); |
256 | //GNUNET_assert (size > mtu); | 256 | GNUNET_assert (size >= sizeof (struct GNUNET_MessageHeader)); |
257 | fc = GNUNET_malloc (sizeof (struct GNUNET_FRAGMENT_Context) + size); | 257 | fc = GNUNET_malloc (sizeof (struct GNUNET_FRAGMENT_Context) + size); |
258 | fc->stats = stats; | 258 | fc->stats = stats; |
259 | fc->mtu = mtu; | 259 | fc->mtu = mtu; |
@@ -398,5 +398,5 @@ GNUNET_FRAGMENT_context_destroy (struct GNUNET_FRAGMENT_Context *fc) | |||
398 | } | 398 | } |
399 | 399 | ||
400 | 400 | ||
401 | /* end of fragmentation_new.c */ | 401 | /* end of fragmentation.c */ |
402 | 402 | ||