aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-02-17 18:53:33 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-02-17 18:53:33 +0000
commitcbd26157c52e27af16efcb474861eb4126085283 (patch)
treebd6705b51cf4dcda50715f734d3565a9806d3d50 /src/or/rendservice.c
parentd038430a1409fbb28ea4d0b62654fc3cc7bb1f7a (diff)
downloadtor-cbd26157c52e27af16efcb474861eb4126085283.tar.gz
tor-cbd26157c52e27af16efcb474861eb4126085283.zip
Remove tor_strclear(), and replace previous calls with memwipe().
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 6c934c8c12..036869650c 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -173,7 +173,7 @@ rend_authorized_client_free(rend_authorized_client_t *client)
return;
if (client->client_key)
crypto_pk_free(client->client_key);
- tor_strclear(client->client_name);
+ memwipe(client->client_name, 0, strlen(client->client_name));
tor_free(client->client_name);
memwipe(client->descriptor_cookie, 0, sizeof(client->descriptor_cookie));
tor_free(client);
@@ -1052,7 +1052,7 @@ rend_service_load_auth_keys(rend_service_t *s, const char *hfname)
abort_writing_to_file(open_hfile);
done:
if (client_keys_str) {
- tor_strclear(client_keys_str);
+ memwipe(client_keys_str, 0, strlen(client_keys_str));
tor_free(client_keys_str);
}
strmap_free(parsed_clients, rend_authorized_client_strmap_item_free);