Browse Source

handle more purposes in new_route_len

svn:r1618
Roger Dingledine 21 years ago
parent
commit
49f5e5b4ae
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/or/onion.c

+ 5 - 1
src/or/onion.c

@@ -171,9 +171,13 @@ static int new_route_len(double cw, uint8_t purpose, smartlist_t *routers) {
 #else
   if(purpose == CIRCUIT_PURPOSE_C_GENERAL)
     routelen = 3;
-  else if(purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND)
+  else if(purpose == CIRCUIT_PURPOSE_C_INTRODUCING)
     routelen = 4;
+  else if(purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND)
+    routelen = 3;
   else if(purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO)
+    routelen = 3;
+  else if(purpose == CIRCUIT_PURPOSE_S_CONNECT_REND)
     routelen = 4;
   else {
     log_fn(LOG_WARN,"Unhandled purpose %d", purpose);