mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
transport_new() cannot fail; do not check for it to fail.
(It can't fail because the tor_malloc*() family of functions can never return NULL) Found with STACK.
This commit is contained in:
parent
a7e777ab8e
commit
472473ec5d
@ -1094,8 +1094,6 @@ parse_smethod_line(const char *line, managed_proxy_t *mp)
|
||||
|
||||
transport = transport_new(&tor_addr, port, method_name,
|
||||
PROXY_NONE, args_string);
|
||||
if (!transport)
|
||||
goto err;
|
||||
|
||||
smartlist_add(mp->transports, transport);
|
||||
|
||||
@ -1186,8 +1184,6 @@ parse_cmethod_line(const char *line, managed_proxy_t *mp)
|
||||
}
|
||||
|
||||
transport = transport_new(&tor_addr, port, method_name, socks_ver, NULL);
|
||||
if (!transport)
|
||||
goto err;
|
||||
|
||||
smartlist_add(mp->transports, transport);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user