[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Control: add + and 650 OK to HS_DESC_CONTENT event
commit b100ebee4ed64e735de107023189f8c47ef0bc59
Author: David Goulet <dgoulet@xxxxxxxxx>
Date: Sun Mar 15 10:20:11 2015 -0400
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@xxxxxxxxxxxxxx>
Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
src/or/control.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/control.c b/src/or/control.c
index d5dc2f5..2f6ef5c 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,
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits