summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2015-03-15 10:20:11 -0400
committerDavid Goulet <dgoulet@ev0ke.net>2015-04-21 14:22:54 -0400
commitb100ebee4ed64e735de107023189f8c47ef0bc59 (patch)
tree1ffab401eef1d2938c8400e46b421231b6b336f7 /src/or
parent28cf9f2186a96bba74b0870b95a9fa1630305388 (diff)
downloadtor-b100ebee4ed64e735de107023189f8c47ef0bc59.tar.gz
tor-b100ebee4ed64e735de107023189f8c47ef0bc59.zip
Control: add + and 650 OK to HS_DESC_CONTENT event
The HS_DESC_CONTENT event results in multiple line thus must be prefixed with a "650+" and ending with "650 OK". Reported-by: Damian Johnson <atagar@torproject.org> Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index d5dc2f5ef3..2f6ef5cd9b 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -5489,7 +5489,7 @@ control_event_hs_descriptor_content(const char *onion_address,
write_escaped_data(content, strlen(content), &esc_content);
send_control_event(EVENT_HS_DESC_CONTENT, ALL_FORMATS,
- "650 %s %s %s %s\r\n%s",
+ "650+%s %s %s %s\r\n%s650 OK\r\n",
event_name,
rend_hsaddress_str_or_unknown(onion_address),
desc_id,