Browse Source

Merge remote-tracking branch 'public/bug9841_024_v2' into bug9841_025

Nick Mathewson 10 years ago
parent
commit
1bb6e3b503
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/or/circuitlist.c

+ 5 - 0
src/or/circuitlist.c

@@ -1334,6 +1334,11 @@ circuit_set_rend_token(or_circuit_t *circ, int is_rend_circ,
   if (circ->rendinfo)
     circuit_clear_rend_token(circ);
 
+  if (token == NULL) {
+    /* We were only trying to remove this token, not set a new one. */
+    return;
+  }
+
   found_circ = digestmap_get(map, (const char *)token);
   if (found_circ) {
     tor_assert(found_circ != circ);