commit 613079fbc4b56198d468ea340b149ad3044090c2 Author: Linus Nordberg linus@torproject.org Date: Thu Sep 20 17:13:55 2012 +0200
Don't leak msg when parse_virtual_addr_network() fails. --- src/or/config.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/or/config.c b/src/or/config.c index affe238..e4e9d52 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1159,7 +1159,6 @@ options_act(const or_options_t *old_options) config_line_t *cl; or_options_t *options = get_options_mutable(); int running_tor = options->command == CMD_RUN_TOR; - char *msg; const int transition_affects_workers = old_options && options_transition_affects_workers(old_options, options);
@@ -1328,7 +1327,7 @@ options_act(const or_options_t *old_options)
/* Register addressmap directives */ config_register_addressmaps(options); - parse_virtual_addr_network(options->VirtualAddrNetwork, 0, &msg); + parse_virtual_addr_network(options->VirtualAddrNetwork, 0, NULL);
/* Update address policies. */ if (policies_parse_from_options(options) < 0) {
tor-commits@lists.torproject.org