int i;
void *lvalue;
+ tor_assert(options);
+
for (i=0; config_vars[i].name; ++i) {
lvalue = ((char*)options) + config_vars[i].var_offset;
switch (config_vars[i].type) {
break;
}
}
+ tor_free(options);
}
/** Return true iff the option <b>var</b> has the same value in <b>o1</b>
log_fn(LOG_ERR,"Reading config failed--see warnings above. For usage, try -h.");
return -1;
}
- options = get_options();
+ options = get_options(); /* they have changed now */
if (authdir_mode(options)) {
/* reload the approved-routers file */
tor_snprintf(keydir,sizeof(keydir),"%s/approved-routers", options->DataDirectory);