Преглед на файлове

Fix a bogus memwipe length in rend_service_load_auth_keys().

Bugfix on a4f46ff8ba43b1e635bc5a8543b9354e6de02e14. Found by Coverity.
Nick Mathewson преди 9 години
родител
ревизия
425f5e6d40
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/or/rendservice.c

+ 1 - 1
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);
   }