From 7be129b72c09dd672b75f7cfa68ea3a3e271b18d Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Thu, 23 Jul 2015 04:56:40 +0200
Subject: degesch: fix one last SOCKS corner case
---
degesch.c | 4 ++++
1 file changed, 4 insertions(+)
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;
}
--
cgit v1.2.3-70-g09d2