mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix a bogus memwipe length in rend_service_load_auth_keys().
Bugfix on a4f46ff8ba
. Found by Coverity.
This commit is contained in:
parent
b88f918227
commit
425f5e6d40
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user