diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-18 08:07:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-18 08:07:16 +0000 |
commit | 347bcec84a6706f41da4822a81b7ff5f797e2806 (patch) | |
tree | 3fd14640ba55176dd90913cf44cab429b1e8ab73 /src/or/dirserv.c | |
parent | c58cc8c16c14ab789cb8afd9e292986c242daf1b (diff) | |
download | tor-347bcec84a6706f41da4822a81b7ff5f797e2806.tar.gz tor-347bcec84a6706f41da4822a81b7ff5f797e2806.zip |
Fix a couple of bugs in last patch.
svn:r6644
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index e80c8300b9..7e118359e5 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1750,13 +1750,13 @@ dirserv_orconn_tls_done(const char *address, static int connection_dirserv_add_servers_to_outbuf(connection_t *conn) { - int fp = conn->dir_refresh_src == DIR_REFRESH_SERVER_BY_FP; + int by_fp = conn->dir_refresh_src == DIR_REFRESH_SERVER_BY_FP; while (smartlist_len(conn->fingerprint_stack) && buf_datalen(conn->outbuf) < DIRSERV_BUFFER_MIN) { char *fp = smartlist_pop_last(conn->fingerprint_stack); signed_descriptor_t *sd = NULL; - if (fp) { + if (by_fp) { if (router_digest_is_me(fp)) { sd = &(router_get_my_routerinfo()->cache_info); } else { |