[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix an assert on startup when the disk is full and you"re l...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] fix an assert on startup when the disk is full and you"re l...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Wed, 22 Dec 2004 03:16:44 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Wed, 22 Dec 2004 03:17:05 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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;
}