degesch: fix one last SOCKS corner case

This commit is contained in:
Přemysl Eric Janouch 2015-07-23 04:56:40 +02:00
parent 6c5e038187
commit 7be129b72c

View File

@ -4492,6 +4492,10 @@ irc_setup_connector_socks (struct server *s,
get_config_string (s->config, "socks_username"), get_config_string (s->config, "socks_username"),
get_config_string (s->config, "socks_password")); get_config_string (s->config, "socks_password"));
free (service); free (service);
// The SOCKS connector can have already failed; we mustn't return true then
if (!s->socks_conn)
FAIL ("SOCKS connection failed");
return true; return true;
} }