[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix a couple of bugs in last patch.
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv8764/src/or
Modified Files:
directory.c dirserv.c
Log Message:
Fix a couple of bugs in last patch.
Index: directory.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/directory.c,v
retrieving revision 1.376
retrieving revision 1.377
diff -u -p -d -r1.376 -r1.377
--- directory.c 18 Jun 2006 07:38:55 -0000 1.376
+++ directory.c 18 Jun 2006 08:07:16 -0000 1.377
@@ -1507,7 +1507,8 @@ directory_handle_command_get(connection_
if (deflated)
url[url_len-2] = '\0';
conn->fingerprint_stack = smartlist_create();
- res = dirserv_get_routerdescs(conn->fingerprint_stack, url, &msg);
+ res = dirserv_get_routerdesc_fingerprints(conn->fingerprint_stack, url,
+ &msg);
if (!strcmpstart(url, "/tor/server/fp/"))
request_type = deflated?"/tor/server/fp.z":"/tor/server/fp";
Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.335
retrieving revision 1.336
diff -u -p -d -r1.335 -r1.336
--- dirserv.c 18 Jun 2006 07:57:47 -0000 1.335
+++ dirserv.c 18 Jun 2006 08:07:16 -0000 1.336
@@ -1750,13 +1750,13 @@ dirserv_orconn_tls_done(const char *addr
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 {