[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] backport: fix an assert on startup when the disk is full an...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] backport: fix an assert on startup when the disk is full an...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Wed, 22 Dec 2004 03:30:20 -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:30:39 -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/0091/tor/src/common
Modified Files:
Tag: tor-0_0_9-patches
log.c
Log Message:
backport: 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.83.2.1
diff -u -d -r1.83 -r1.83.2.1
--- log.c 30 Nov 2004 06:15:06 -0000 1.83
+++ log.c 22 Dec 2004 08:30:18 -0000 1.83.2.1
@@ -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;
}