From 798ed73a8c2c4cda2f9ac9bba14ed230e81ee585 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Fri, 12 Feb 2016 04:11:33 +0100 Subject: ZyklonB: fix segfault on total SOCKS failure --- zyklonb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zyklonb.c b/zyklonb.c index 56a9220..4a04757 100644 --- a/zyklonb.c +++ b/zyklonb.c @@ -1727,6 +1727,8 @@ irc_establish_connection_socks (struct bot_context *ctx, str_map_find (&ctx->config, "socks_password")); while (data.polling) poller_run (poller); + if (!data.succeeded) + error_set (e, "connection failed"); } socks_connector_free (connector); -- cgit v1.2.3-70-g09d2