mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Make sure callers can handle NULL ext-or auth cookie filename
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user