Browse Source

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

Nick Mathewson 15 years ago
parent
commit
9edd85aa4c
1 changed files with 1 additions and 1 deletions
  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;
   }