]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a bogus memwipe length in rend_service_load_auth_keys().
authorNick Mathewson <nickm@torproject.org>
Wed, 14 Sep 2016 14:58:00 +0000 (10:58 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 Sep 2016 14:58:53 +0000 (10:58 -0400)
Bugfix on a4f46ff8ba43b1e635bc5a8543b9354e6de02e14. Found by Coverity.

src/or/rendservice.c

index 4f7d7aa726a329f035dfac44b81978e70f612621..114a56b74efaa045d5fc8cbc861936f84033978e 100644 (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);
   }