[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix: init HSDirs list in rend_data_service_create



commit 2aaaf7b145e818835e4e0d17e9aed14213b8b0ee
Author: David Goulet <dgoulet@xxxxxxxxx>
Date:   Thu May 14 10:56:14 2015 -0400

    Fix: init HSDirs list in rend_data_service_create
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
 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;
 }

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits