mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
remove redundant checking for . and .. now that
tor_listdir() checks for this too. svn:r5337
This commit is contained in:
parent
1991f6cf48
commit
6dafca62f0
@ -101,8 +101,6 @@ router_reload_networkstatus(void)
|
|||||||
entries = tor_listdir(filename);
|
entries = tor_listdir(filename);
|
||||||
SMARTLIST_FOREACH(entries, const char *, fn, {
|
SMARTLIST_FOREACH(entries, const char *, fn, {
|
||||||
char buf[DIGEST_LEN];
|
char buf[DIGEST_LEN];
|
||||||
if (fn[0] == '.') /* skip . and .. */
|
|
||||||
continue;
|
|
||||||
if (strlen(fn) != HEX_DIGEST_LEN ||
|
if (strlen(fn) != HEX_DIGEST_LEN ||
|
||||||
base16_decode(buf, sizeof(buf), fn, strlen(fn))) {
|
base16_decode(buf, sizeof(buf), fn, strlen(fn))) {
|
||||||
info(LD_DIR,
|
info(LD_DIR,
|
||||||
|
Loading…
Reference in New Issue
Block a user