diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-05-15 13:45:39 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-05-15 13:45:39 +0300 |
commit | cd264e145b0b3518f46e471ecd9228921ee46ab6 (patch) | |
tree | f18771d5f1891b038bf90a118c31a80f5f7bc4aa /src/feature | |
parent | 2b54733dc0bb055b609502cede2a6055b3c3ef15 (diff) | |
parent | ff5584034361154de381874e1a24d0a421aa0631 (diff) | |
download | tor-cd264e145b0b3518f46e471ecd9228921ee46ab6.tar.gz tor-cd264e145b0b3518f46e471ecd9228921ee46ab6.zip |
Merge branch 'tor-github/pr/1013' into maint-0.4.0
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/hs/hs_service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/hs/hs_service.c b/src/feature/hs/hs_service.c index b94dd9a481..21eadd2998 100644 --- a/src/feature/hs/hs_service.c +++ b/src/feature/hs/hs_service.c @@ -1259,16 +1259,16 @@ load_client_keys(hs_service_t *service) client_key_file_path = hs_path_from_filename(client_keys_dir_path, filename); client_key_str = read_file_to_str(client_key_file_path, 0, NULL); - /* Free immediately after using it. */ - tor_free(client_key_file_path); /* If we cannot read the file, continue with the next file. */ if (!client_key_str) { log_warn(LD_REND, "Client authorization file %s can't be read. " "Corrupted or verify permission? Ignoring.", client_key_file_path); + tor_free(client_key_file_path); continue; } + tor_free(client_key_file_path); client = parse_authorized_client(client_key_str); /* Wipe and free immediately after using it. */ |