From: Roger Dingledine Date: Sat, 6 Nov 2004 08:55:22 +0000 (+0000) Subject: fix the next subtle memory-crunching bug X-Git-Tag: debian-version-0.0.8+0.0.9pre5-1~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53a2b227423c1f40f246a3c226bfc2705d87ccc1;p=thirdparty%2Ftor.git fix the next subtle memory-crunching bug now hup works svn:r2696 --- diff --git a/src/or/config.c b/src/or/config.c index 5b903eba66..335936f8f6 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -617,7 +617,7 @@ option_reset(or_options_t *options, config_var_t *var) 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);