diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-12 10:18:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-12 10:18:11 -0400 |
commit | bfc847255afb093b89dd82687d796e3e3c7fcb89 (patch) | |
tree | fa751ba91fc2c17c0dda4e92e924041c54bb3017 /src | |
parent | 19dbc385d540df70b5e9a6193248080a298577c3 (diff) | |
parent | 57c82b74b43132d34fffd6c03932555bfbf503e1 (diff) | |
download | tor-bfc847255afb093b89dd82687d796e3e3c7fcb89.tar.gz tor-bfc847255afb093b89dd82687d796e3e3c7fcb89.zip |
Merge remote-tracking branch 'dgoulet/ticket27545_035_01'
Diffstat (limited to 'src')
-rw-r--r-- | src/feature/hs/hs_service.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c index 30d23eb771..b01f9f0adf 100644 --- a/src/feature/hs/hs_service.c +++ b/src/feature/hs/hs_service.c @@ -18,6 +18,7 @@ #include "lib/crypt_ops/crypto_rand.h" #include "lib/crypt_ops/crypto_util.h" #include "lib/crypt_ops/crypto_ope.h" +#include "lib/crypt_ops/crypto_rand.h" #include "feature/dircache/directory.h" #include "core/mainloop/main.h" #include "feature/nodelist/networkstatus.h" @@ -1799,6 +1800,10 @@ build_service_desc_superencrypted(const hs_service_t *service, smartlist_add(superencrypted->clients, desc_client); } + /* Shuffle the list to prevent the client know the position in the + * config. */ + smartlist_shuffle(superencrypted->clients); + return 0; } |