aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-10-12 06:03:10 +0000
committerRoger Dingledine <arma@torproject.org>2004-10-12 06:03:10 +0000
commit1efad74164fb02fbe493bd2c0366936940c879aa (patch)
treeecaa4ccbbbff8041dd5daf535101478f97154d13 /src
parent24f9946db160f9c2a0a769073013507f30e8346c (diff)
downloadtor-1efad74164fb02fbe493bd2c0366936940c879aa.tar
tor-1efad74164fb02fbe493bd2c0366936940c879aa.tar.gz
bugfix on my friday commit: make hidden services work again in cvs
svn:r2439
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index d013b0f3c..0393f43e7 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -270,6 +270,13 @@ directory_send_command(connection_t *conn, routerinfo_t *router, int purpose,
httpcommand = "GET";
sprintf(url, "%s/rendezvous/%s", use_newer ? "/tor" : "", payload);
+
+ /* XXX We're using payload here to mean something other than
+ * payload of the http post. This is probably bad, and should
+ * be fixed one day. Kludge for now to make sure we don't post more. */
+ payload_len = 0;
+ payload = NULL;
+
break;
case DIR_PURPOSE_UPLOAD_RENDDESC:
tor_assert(payload);
@@ -286,7 +293,7 @@ directory_send_command(connection_t *conn, routerinfo_t *router, int purpose,
hoststring);
connection_write_to_buf(tmp, strlen(tmp), conn);
- if(purpose == DIR_PURPOSE_UPLOAD_DIR || purpose == DIR_PURPOSE_UPLOAD_RENDDESC) {
+ if(payload) {
/* then send the payload afterwards too */
connection_write_to_buf(payload, payload_len, conn);
}