[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35919 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35919 - gnunet/src/cadet |
Date: |
Wed, 10 Jun 2015 14:08:19 +0200 |
Author: bartpolot
Date: 2015-06-10 14:08:19 +0200 (Wed, 10 Jun 2015)
New Revision: 35919
Modified:
gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
- fix returned buffer amount, to make sure channel bugs don't affect connections
Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c 2015-06-10 12:08:19 UTC
(rev 35918)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c 2015-06-10 12:08:19 UTC
(rev 35919)
@@ -44,6 +44,7 @@
#endif
#define MIN_TUNNEL_BUFFER 8
+#define MAX_TUNNEL_BUFFER 64
#define MAX_SKIPPED_KEYS 64
#define MAX_KEY_GAP 256
#define AX_HEADER_SIZE (sizeof (uint32_t) * 2\
@@ -3889,6 +3890,12 @@
}
if (MIN_TUNNEL_BUFFER > buffer)
return MIN_TUNNEL_BUFFER;
+
+ if (MAX_TUNNEL_BUFFER < buffer)
+ {
+ GNUNET_break (0);
+ return MAX_TUNNEL_BUFFER;
+ }
return buffer;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35919 - gnunet/src/cadet,
gnunet <=