mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix an assert on startup when the disk is full and you're logging to a file
svn:r3204
This commit is contained in:
+1
-3
@@ -393,9 +393,7 @@ int add_file_log(int loglevelMin, int loglevelMax, const char *filename)
|
||||
add_stream_log(loglevelMin, loglevelMax, filename, f);
|
||||
logfiles->needs_close = 1;
|
||||
if (log_tor_version(logfiles, 0) < 0) {
|
||||
logfile_t *victim = logfiles;
|
||||
logfiles = victim->next;
|
||||
delete_log(victim);
|
||||
delete_log(logfiles);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user