Skip to content
Snippets Groups Projects
Commit 53a2b227 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

fix the next subtle memory-crunching bug

now hup works


svn:r2696
parent e2e6d19e
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment