diff options
author | David Goulet <dgoulet@ev0ke.net> | 2015-04-30 12:28:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-05-14 10:46:38 -0400 |
commit | c1ffeadff4db375886d40bb5928ddd4fe761ba9f (patch) | |
tree | a1911a7d1b60a6908f506f96604f51c90fb8c57b /src/or/rendcommon.h | |
parent | 95a9920461dd3322280a13c8d99e363c91028ab2 (diff) | |
download | tor-c1ffeadff4db375886d40bb5928ddd4fe761ba9f.tar.gz tor-c1ffeadff4db375886d40bb5928ddd4fe761ba9f.zip |
Add missing descriptor ID to HS_DESC control event
For FAILED and RECEIVED action of the HS_DESC event, we now sends back the
descriptor ID at the end like specified in the control-spec section 4.1.25.
Fixes #15881
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/rendcommon.h')
-rw-r--r-- | src/or/rendcommon.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/rendcommon.h b/src/or/rendcommon.h index a4d55d21d0..806851cbf9 100644 --- a/src/or/rendcommon.h +++ b/src/or/rendcommon.h @@ -16,6 +16,12 @@ static INLINE void rend_data_free(rend_data_t *data) { + if (!data) { + return; + } + /* Cleanup the HSDir identity digest. */ + SMARTLIST_FOREACH(data->hsdirs_fp, char *, d, tor_free(d)); + smartlist_free(data->hsdirs_fp); tor_free(data); } |