[or-cvs] backport: fix an assert on startup when the disk is full an...

Roger Dingledine arma at seul.org
Wed Dec 22 08:30:20 UTC 2004


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;
 }



More information about the tor-commits mailing list