[tor-bugs] #5373 [Tor Client]: "socksport 2000 testingtornetwork 1" results in socksport 9050
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Tue Mar 13 16:19:35 UTC 2012
#5373: "socksport 2000 testingtornetwork 1" results in socksport 9050
------------------------+---------------------------------------------------
Reporter: arma | Owner:
Type: defect | Status: new
Priority: major | Milestone: Tor: 0.2.3.x-final
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Comment(by arma):
This patch fixes it for me:
{{{
diff --git a/src/or/config.c b/src/or/config.c
index 3a7bf65..0c699b0 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4660,6 +4660,13 @@ options_init_from_string(const char *cf_defaults,
const
if (i==0)
newdefaultoptions = options_dup(&options_format, newoptions);
}
+ /* Assign command-line variables a second time too */
+ retval = config_assign(&options_format, newoptions,
+ global_cmdline_options, 0, 0, msg);
+ if (retval < 0) {
+ err = SETOPT_ERR_PARSE;
+ goto err;
+ }
}
/* Validate newoptions */
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5373#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list