From: Roger Dingledine Date: Wed, 22 Dec 2004 08:16:42 +0000 (+0000) Subject: fix an assert on startup when the disk is full and you're logging to a file X-Git-Tag: debian-version-0.0.9.2-1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3189c2573f25b10efe4c805e4ab85ca6ed9419c;p=thirdparty%2Ftor.git fix an assert on startup when the disk is full and you're logging to a file svn:r3204 --- 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; }