diff options
author | Linus Nordberg <linus@torproject.org> | 2012-09-20 17:13:55 +0200 |
---|---|---|
committer | Linus Nordberg <linus@torproject.org> | 2012-09-20 17:15:15 +0200 |
commit | 613079fbc4b56198d468ea340b149ad3044090c2 (patch) | |
tree | 2bf682bc7b757c64a91e9c5f266b549b8fda7115 /src/or/config.c | |
parent | cff3b8c93cf312956e629b4caab8f5e48d1e10dd (diff) | |
download | tor-613079fbc4b56198d468ea340b149ad3044090c2.tar.gz tor-613079fbc4b56198d468ea340b149ad3044090c2.zip |
Don't leak msg when parse_virtual_addr_network() fails.
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | 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 affe2388bf..e4e9d52e97 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) { |