[tor-commits] [tor/master] Fix: init HSDirs list in rend_data_service_create
nickm at torproject.org
nickm at torproject.org
Thu May 14 15:09:06 UTC 2015
commit 2aaaf7b145e818835e4e0d17e9aed14213b8b0ee
Author: David Goulet <dgoulet at ev0ke.net>
Date: Thu May 14 10:56:14 2015 -0400
Fix: init HSDirs list in rend_data_service_create
Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
src/or/rendcommon.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index f06a5ff..ec4353c 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;
}
More information about the tor-commits
mailing list