Fix a bogus memwipe length in rend_service_load_auth_keys().

Bugfix on a4f46ff8ba. Found by Coverity.
This commit is contained in:
Nick Mathewson 2016-09-14 10:58:00 -04:00
parent b88f918227
commit 425f5e6d40

View File

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