]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Allow prop110 violations if AllowNonearlyExtend is set in consensus
authorNick Mathewson <nickm@torproject.org>
Thu, 22 Dec 2011 15:12:49 +0000 (10:12 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 22 Dec 2011 15:12:49 +0000 (10:12 -0500)
src/or/relay.c

index fdc26006a0998e48c681b7f29e0eb4672d818cde..e5790dc5ebe9e7ba653dcbddd594ccc3671b46e9 100644 (file)
@@ -1196,7 +1196,8 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
                "'extend' cell received for non-zero stream. Dropping.");
         return 0;
       }
-      if (cell->command != CELL_RELAY_EARLY) {
+      if (cell->command != CELL_RELAY_EARLY &&
+          !networkstatus_get_param(NULL,"AllowNonearlyExtend",0,0,1)) {
 #define EARLY_WARNING_INTERVAL 900
         static ratelim_t early_warning_limit =
           RATELIM_INIT(EARLY_WARNING_INTERVAL);