[or-cvs] fix an assert on startup when the disk is full and you"re l...
Roger Dingledine
arma at seul.org
Wed Dec 22 08:16:44 UTC 2004
Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common
Modified Files:
log.c
Log Message:
fix an assert on startup when the disk is full and you're logging to a file
Index: log.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/log.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- log.c 30 Nov 2004 06:15:06 -0000 1.83
+++ log.c 22 Dec 2004 08:16:42 -0000 1.84
@@ -393,9 +393,7 @@
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;
}
More information about the tor-commits
mailing list