diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-22 08:16:42 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-22 08:16:42 +0000 |
commit | c3189c2573f25b10efe4c805e4ab85ca6ed9419c (patch) | |
tree | d392aa9b7c2e728a882b5783103a26e6de004e86 /src | |
parent | cf17d0d29c9526a0e9b6631693eb2bf0479e655c (diff) | |
download | tor-c3189c2573f25b10efe4c805e4ab85ca6ed9419c.tar.gz tor-c3189c2573f25b10efe4c805e4ab85ca6ed9419c.zip |
fix an assert on startup when the disk is full and you're logging to a file
svn:r3204
Diffstat (limited to 'src')
-rw-r--r-- | src/common/log.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/common/log.c b/src/common/log.c index 3a4f32e176..2b0c2cc65a 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -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; } |