Fix: init HSDirs list in rend_data_service_create

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
This commit is contained in:
David Goulet 2015-05-14 10:56:14 -04:00 committed by Nick Mathewson
parent d05d21c89a
commit 2aaaf7b145

View File

@ -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;
}