From: Robert Ransom Date: Mon, 7 Nov 2011 23:32:43 +0000 (-0800) Subject: Add some XXXes X-Git-Tag: tor-0.2.3.8-alpha~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfb900e426e5eb043bfe20a198d9451abad89644;p=thirdparty%2Ftor.git Add some XXXes --- diff --git a/src/or/control.c b/src/or/control.c index 52af4a0e60..7785ec5f3f 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1597,6 +1597,8 @@ getinfo_helper_dir(control_connection_t *control_conn, *answer = tor_strndup(body, ri->cache_info.signed_descriptor_len); } } else if (!strcmpstart(question, "desc/name/")) { + /* XXX023 Setting 'warn_if_unnamed' here is a bit silly -- the + * warning goes to the user, not to the controller. */ ri = router_get_by_nickname(question+strlen("desc/name/"),1); if (ri) { const char *body = signed_descriptor_get_body(&ri->cache_info); @@ -1649,7 +1651,10 @@ getinfo_helper_dir(control_connection_t *control_conn, *answer = tor_strndup(md->body, md->bodylen); } } else if (!strcmpstart(question, "md/name/")) { + /* XXX023 Setting 'warn_if_unnamed' here is a bit silly -- the + * warning goes to the user, not to the controller. */ const node_t *node = node_get_by_nickname(question+strlen("md/name/"), 1); + /* XXXX duplicated code */ const microdesc_t *md = NULL; if (node) md = node->md; if (md) {