浏览代码

fix crash introduced in r9622

svn:r9632
Roger Dingledine 18 年之前
父节点
当前提交
2015479b5a
共有 1 个文件被更改,包括 2 次插入1 次删除
  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) {