control: Fix wrong Action on failure to upload an HS descriptor

On failure to upload, the HS_DESC event would report "UPLOAD_FAILED" as the
Action but it should have reported "FAILED" according to the spec.

Fixes #24230

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2017-11-10 15:31:31 -05:00
parent aa1d90b40c
commit 42ce6f78c8
2 changed files with 5 additions and 1 deletions

4
changes/bug24230 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (control port, hidden service):
- Control port was reporting the action "UPLOAD_FAILED" instead of
"FAILED" for the HS_DESC event when a service was not able to upload a
descriptor. Fixes bug 24230; bugfix on 0.2.7.1-alpha.

View File

@ -7284,7 +7284,7 @@ control_event_hs_descriptor_upload_failed(const char *id_digest,
id_digest); id_digest);
return; return;
} }
control_event_hs_descriptor_upload_end("UPLOAD_FAILED", onion_address, control_event_hs_descriptor_upload_end("FAILED", onion_address,
id_digest, reason); id_digest, reason);
} }