summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2015-03-23 13:07:51 -0400
committerDavid Goulet <dgoulet@ev0ke.net>2015-04-21 14:22:54 -0400
commita4585405d6e103b9a48a1401321477ea08fa2ad1 (patch)
tree37731ef1a7d5c5bbb7684d820635b7ec70a93ea0 /src/or/directory.c
parent917c3aac60a68c7bf6f29705e61a313fffb071d1 (diff)
downloadtor-a4585405d6e103b9a48a1401321477ea08fa2ad1.tar.gz
tor-a4585405d6e103b9a48a1401321477ea08fa2ad1.zip
Multiple fixes for the HSFETCH command
Ref: https://trac.torproject.org/projects/tor/ticket/14847?replyto=31#comment:31 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 0e7b9542dc..37a46fc126 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2107,7 +2107,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
control_event_hs_descriptor_content(conn->rend_data->onion_address, \
conn->requested_resource, \
conn->identity_digest, \
- "") )
+ NULL) )
tor_assert(conn->rend_data);
log_info(LD_REND,"Received rendezvous descriptor (size %d, status %d "
"(%s))",
@@ -2149,6 +2149,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
body);
conn->base_.purpose = DIR_PURPOSE_HAS_FETCHED_RENDDESC_V2;
rend_client_desc_trynow(service_id);
+ memwipe(service_id, 0, sizeof(service_id));
break;
}
}