mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
fix the next subtle memory-crunching bug
now hup works svn:r2696
This commit is contained in:
parent
e2e6d19e76
commit
53a2b22742
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user