Commit 02d42d91 authored by Nick Mathewson's avatar Nick Mathewson 🏃
Browse files

Fix crash in first-time option validation. Oops.

svn:r7018
parent 0a7d5b83
......@@ -2075,10 +2075,10 @@ options_validate(or_options_t *old_options, or_options_t *options,
const char *tp = is_socks ? "SOCKS proxy" : "transparent proxy";
if (is_socks) {
opt = options->SocksListenAddress;
old = old_options->SocksListenAddress;
old = old_options ? old_options->SocksListenAddress : NULL;
} else {
opt = options->TransListenAddress;
old = old_options->TransListenAddress;
old = old_options ? old_options->TransListenAddress : NULL;
}
for (line = opt; line; line = line->next) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment