ソースを参照

Switch an && to an ||, stop a *NULL.

Nick Mathewson 15 年 前
コミット
9edd85aa4c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/or/circuitbuild.c

+ 1 - 1
src/or/circuitbuild.c

@@ -3358,7 +3358,7 @@ entry_is_live(entry_guard_t *e, int need_uptime, int need_capacity,
     return NULL;
   }
   node = node_get_by_id(e->identity);
-  if (!node && !node_has_descriptor(node)) {
+  if (!node || !node_has_descriptor(node)) {
     *msg = "no descriptor";
     return NULL;
   }