[or-cvs] [tor/master 11/15] Switch an && to an ||, stop a *NULL.
nickm at torproject.org
nickm at torproject.org
Wed Oct 13 19:59:50 UTC 2010
Author: Nick Mathewson <nickm at torproject.org>
Date: Mon, 4 Oct 2010 23:33:50 -0400
Subject: Switch an && to an ||, stop a *NULL.
Commit: 9edd85aa4cb019499294b4c378961be8e42bcefe
---
src/or/circuitbuild.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index f485574..6e9e0e1 100644
--- a/src/or/circuitbuild.c
+++ b/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;
}
--
1.7.1
More information about the tor-commits
mailing list