diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-02-19 13:55:18 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-19 13:55:18 -0500 |
commit | 65b75ef3d5628fac8e8eeebaf66c437a505653e0 (patch) | |
tree | 4d58093b552a1dbab30cb12927b00c9ccbcc847a /src/feature/client | |
parent | 7b6e81f8e65668e948153a4e089135d0befe3713 (diff) | |
parent | 9b21a5d2549bb1ef1ee8f3c8cc92b33ff411ce36 (diff) | |
download | tor-65b75ef3d5628fac8e8eeebaf66c437a505653e0.tar.gz tor-65b75ef3d5628fac8e8eeebaf66c437a505653e0.zip |
Merge branch 'extract_ext_orport'
Diffstat (limited to 'src/feature/client')
-rw-r--r-- | src/feature/client/transports.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feature/client/transports.c b/src/feature/client/transports.c index a8ea9781a4..55069bb60a 100644 --- a/src/feature/client/transports.c +++ b/src/feature/client/transports.c @@ -1420,8 +1420,10 @@ create_managed_proxy_environment(const managed_proxy_t *mp) smartlist_add_asprintf(envs, "TOR_PT_EXTENDED_SERVER_PORT=%s", ext_or_addrport_tmp); } - smartlist_add_asprintf(envs, "TOR_PT_AUTH_COOKIE_FILE=%s", - cookie_file_loc); + if (cookie_file_loc) { + smartlist_add_asprintf(envs, "TOR_PT_AUTH_COOKIE_FILE=%s", + cookie_file_loc); + } tor_free(ext_or_addrport_tmp); tor_free(cookie_file_loc); |