mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
make explicit that we don't care if a rename() call fails.
potential bug reported by veracode. svn:r13590
This commit is contained in:
parent
749735215b
commit
810bfe970c
@ -4753,7 +4753,7 @@ or_state_load(void)
|
||||
log_warn(LD_BUG, "Unable to parse state in \"%s\". Moving it aside "
|
||||
"to \"%s\". This could be a bug in Tor; please tell "
|
||||
"the developers.", fname, fname2);
|
||||
rename(fname, fname2);
|
||||
(int)rename(fname, fname2);
|
||||
}
|
||||
tor_free(fname2);
|
||||
tor_free(contents);
|
||||
|
Loading…
Reference in New Issue
Block a user