diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-14 10:58:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-14 10:58:53 -0400 |
commit | 425f5e6d40d756dabef4354fec562c6de2c56efd (patch) | |
tree | 2334b26b64a83b2e146a92478685bc37e7e765d0 /src/or/rendservice.c | |
parent | b88f918227bf888cf57095aa4c7072491738ac79 (diff) | |
download | tor-425f5e6d40d756dabef4354fec562c6de2c56efd.tar.gz tor-425f5e6d40d756dabef4354fec562c6de2c56efd.zip |
Fix a bogus memwipe length in rend_service_load_auth_keys().
Bugfix on a4f46ff8ba43b1e635bc5a8543b9354e6de02e14. Found by Coverity.
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 4f7d7aa726..114a56b74e 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1490,7 +1490,7 @@ rend_service_load_auth_keys(rend_service_t *s, const char *hfname) strmap_free(parsed_clients, rend_authorized_client_strmap_item_free); if (cfname) { - memwipe(cfname, 0, sizeof(cfname)); + memwipe(cfname, 0, strlen(cfname)); tor_free(cfname); } |