aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-23 04:56:40 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-23 04:56:40 +0200
commit7be129b72c09dd672b75f7cfa68ea3a3e271b18d (patch)
treec96273b76cd2b3f6eede0ce03f61c8c7c7c0c79f /degesch.c
parent6c5e0381870ddc9aee2cc8f080733147a0022282 (diff)
downloadxK-7be129b72c09dd672b75f7cfa68ea3a3e271b18d.tar.gz
xK-7be129b72c09dd672b75f7cfa68ea3a3e271b18d.tar.xz
xK-7be129b72c09dd672b75f7cfa68ea3a3e271b18d.zip
degesch: fix one last SOCKS corner case
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index a8d7151..bfae437 100644
--- a/degesch.c
+++ b/degesch.c
@@ -4492,6 +4492,10 @@ irc_setup_connector_socks (struct server *s,
get_config_string (s->config, "socks_username"),
get_config_string (s->config, "socks_password"));
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;
}