Kaynağa Gözat

fix crash introduced in r9622

svn:r9632
Roger Dingledine 18 yıl önce
ebeveyn
işleme
2015479b5a
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/or/circuitbuild.c

+ 2 - 1
src/or/circuitbuild.c

@@ -2201,7 +2201,8 @@ entry_guard_register_connect_status(const char *digest, int succeeded,
                 entry->nickname, buf, tbuf);
       entry->last_attempted = now;
     }
-    entry->can_retry = 0; /* We gave it an early chance; no good. */
+    if (entry)
+      entry->can_retry = 0; /* We gave it an early chance; no good. */
   }
 
   if (first_contact) {