aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2015-05-14 10:56:14 -0400
committerNick Mathewson <nickm@torproject.org>2015-05-14 11:09:02 -0400
commit2aaaf7b145e818835e4e0d17e9aed14213b8b0ee (patch)
treeb8ff4839eb5f1cdb1147e3920f04424484c3037a /src/or/rendcommon.c
parentd05d21c89a21695ba9de32140ff13c68610b39f0 (diff)
downloadtor-2aaaf7b145e818835e4e0d17e9aed14213b8b0ee.tar.gz
tor-2aaaf7b145e818835e4e0d17e9aed14213b8b0ee.zip
Fix: init HSDirs list in rend_data_service_create
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index f06a5ff424..ec4353c409 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -1464,6 +1464,9 @@ rend_data_service_create(const char *onion_address, const char *pk_digest,
strlcpy(rend_data->onion_address, onion_address,
sizeof(rend_data->onion_address));
rend_data->auth_type = auth_type;
+ /* Won't be used but still need to initialize it for rend_data dup and
+ * free. */
+ rend_data->hsdirs_fp = smartlist_new();
return rend_data;
}