Explorar o código

Tighten accepted circwindow parameters

Based on discussion in bug 2317, these values seem to be sane.
Sebastian Hahn %!s(int64=14) %!d(string=hai) anos
pai
achega
0df51a7f39
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/or/or.h

+ 2 - 2
src/or/or.h

@@ -765,8 +765,8 @@ typedef enum {
 /** Initial value for both sides of a circuit transmission window when the
  * circuit is initialized.  Measured in cells. */
 #define CIRCWINDOW_START 1000
-#define CIRCWINDOW_START_MIN 1
-#define CIRCWINDOW_START_MAX 100000
+#define CIRCWINDOW_START_MIN 100
+#define CIRCWINDOW_START_MAX 1000
 /** Amount to increment a circuit window when we get a circuit SENDME. */
 #define CIRCWINDOW_INCREMENT 100
 /** Initial value on both sides of a stream transmission window when the