[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] fix the next subtle memory-crunching bug



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	config.c 
Log Message:
fix the next subtle memory-crunching bug
now hup works


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.211
retrieving revision 1.212
diff -u -d -r1.211 -r1.212
--- config.c	6 Nov 2004 07:40:20 -0000	1.211
+++ config.c	6 Nov 2004 08:55:22 -0000	1.212
@@ -617,7 +617,7 @@
       break;
   }
   if (var->initvalue) {
-    c = tor_malloc(sizeof(struct config_line_t));
+    c = tor_malloc_zero(sizeof(struct config_line_t));
     c->key = tor_strdup(var->name);
     c->value = tor_strdup(var->initvalue);
     config_assign_line(options,c,0);