diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-04 23:51:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-04 23:51:30 -0400 |
commit | 4080d9b0fa9dd4cab903599d6f7f3ed0785e2420 (patch) | |
tree | 54fe163d4141fd910a3b3cd73b08ffc528fdd053 /src/or/nodelist.c | |
parent | 9edd85aa4cb019499294b4c378961be8e42bcefe (diff) | |
download | tor-4080d9b0fa9dd4cab903599d6f7f3ed0785e2420.tar.gz tor-4080d9b0fa9dd4cab903599d6f7f3ed0785e2420.zip |
Fix a couple more node_t-related nullpointer bugs
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r-- | src/or/nodelist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c index a7946c9a2c..8145217c2f 100644 --- a/src/or/nodelist.c +++ b/src/or/nodelist.c @@ -514,6 +514,7 @@ node_get_by_nickname(const char *nickname, int warn_if_unnamed) const char * node_get_nickname(const node_t *node) { + tor_assert(node); if (node->rs) return node->rs->nickname; else if (node->ri) |