From 472473ec5d1a49b852b2f20fd7b0ed3350877cd2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 26 Nov 2017 17:05:30 -0500 Subject: 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. --- src/or/transports.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/or/transports.c') diff --git a/src/or/transports.c b/src/or/transports.c index 68d1354844..5fb24e11a0 100644 --- a/src/or/transports.c +++ b/src/or/transports.c @@ -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); -- cgit v1.2.3-54-g00ecf