diff options
author | Roger Dingledine <arma@torproject.org> | 2005-09-13 01:20:26 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-09-13 01:20:26 +0000 |
commit | 82b3b6249c796a4b3339d8a20a76593ab3c0479a (patch) | |
tree | d2c641dccb65aa9a2a111fac974c3b6700c3975e /src/or/dirserv.c | |
parent | 8b0d37096bd15eff5065b30f1f288cb7464a6f08 (diff) | |
download | tor-82b3b6249c796a4b3339d8a20a76593ab3c0479a.tar.gz tor-82b3b6249c796a4b3339d8a20a76593ab3c0479a.zip |
fix a seg fault if we ask an authdirserver for a descriptor by
fingerprint but he doesn't know about him.
svn:r5023
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 4b83bfcf84..9eb576b728 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1290,7 +1290,7 @@ dirserv_get_routerdescs(smartlist_t *descs_out, const char *key) smartlist_add(descs_out, router_get_my_routerinfo()); } else { routerinfo_t *ri = router_get_by_digest(d); - if (d) + if (ri) smartlist_add(descs_out,ri); } }); |