aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-22 08:16:42 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-22 08:16:42 +0000
commitc3189c2573f25b10efe4c805e4ab85ca6ed9419c (patch)
treed392aa9b7c2e728a882b5783103a26e6de004e86 /src
parentcf17d0d29c9526a0e9b6631693eb2bf0479e655c (diff)
downloadtor-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.c4
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;
}