mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Fix crash in first-time option validation. Oops.
svn:r7018
This commit is contained in:
parent
0a7d5b8371
commit
02d42d9138
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user