diff options
author | Alexander Færøy <ahf@torproject.org> | 2019-09-24 16:42:00 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2019-10-17 21:33:54 +0200 |
commit | 389b37246eb6310401bfc3bcb80ee2fb8dcac56b (patch) | |
tree | 1dd9b7209cd45cbaade71bae2f39e161474a0d8f /src/feature | |
parent | e483257e1bc826b5678fcbf13084fd5d811f2b12 (diff) | |
download | tor-389b37246eb6310401bfc3bcb80ee2fb8dcac56b.tar.gz tor-389b37246eb6310401bfc3bcb80ee2fb8dcac56b.zip |
Remove overly strict assertions in transports.c.
This patch removes an overly strict tor_assert() and an ignorable BUG()
expression. Both of these would trigger if a PT was unable to configure
itself during startup. The easy way to trigger this is to configure an
obfs4 bridge where you make the obfs4 process try to bind on a port
number under 1024.
See: https://bugs.torproject.org/31091
Diffstat (limited to 'src/feature')
-rw-r--r-- | src/feature/client/transports.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/feature/client/transports.c b/src/feature/client/transports.c index e7ff3bf34a..f34d4af480 100644 --- a/src/feature/client/transports.c +++ b/src/feature/client/transports.c @@ -1826,15 +1826,13 @@ managed_proxy_stdout_callback(process_t *process, managed_proxy_t *mp = process_get_data(process); - if (BUG(mp == NULL)) + if (mp == NULL) return; handle_proxy_line(line, mp); - if (proxy_configuration_finished(mp)) { + if (proxy_configuration_finished(mp)) handle_finished_proxy(mp); - tor_assert(mp->conf_state == PT_PROTO_COMPLETED); - } } /** Callback function that is called when our PT process have data on its |