diff options
author | Alexander Færøy <ahf@torproject.org> | 2018-12-14 02:17:00 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-17 16:39:28 -0500 |
commit | 651cdd05b7071bff4da7c3335f697d90c82c9f3e (patch) | |
tree | f32fdc7e0a19361c116762bf14e0938ffc0aeeda | |
parent | fab22509d70ff3289f7300788bd9243659268f69 (diff) | |
download | tor-651cdd05b7071bff4da7c3335f697d90c82c9f3e.tar.gz tor-651cdd05b7071bff4da7c3335f697d90c82c9f3e.zip |
Add an additional space when we check for the PROTO_LOG handler.
See: https://bugs.torproject.org/28179
-rw-r--r-- | src/feature/client/transports.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/feature/client/transports.c b/src/feature/client/transports.c index 0f456ba1e6..de53fe3469 100644 --- a/src/feature/client/transports.c +++ b/src/feature/client/transports.c @@ -909,7 +909,11 @@ handle_proxy_line(const char *line, managed_proxy_t *mp) parse_proxy_error(line); goto err; - } else if (!strcmpstart(line, PROTO_LOG)) { + + /* We check for the additional " " after the PROTO_LOG string to make sure + * we can later extend this big if/else-if table with something that begins + * with "LOG" without having to get the order right. */ + } else if (!strcmpstart(line, PROTO_LOG " ")) { parse_log_line(line, mp); return; } |