From ab99e2d94176eef3b1b23ef3f0f180c6d5077ea6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 7 Oct 2015 16:04:43 +0200 Subject: [PATCH] ZOOM C: tweak when connection failed is returned For cases with multiple socket addresses for some hostname, eg localhost IPV4+IPV6, the code now properly returns "connection failed" rather than "connection lost". --- src/zoom-c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zoom-c.c b/src/zoom-c.c index 3e5d647..5c62a07 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -2004,7 +2004,8 @@ static void ZOOM_connection_do_io(ZOOM_connection c, int mask) else ZOOM_connection_exec_task(c); } - c->state = STATE_ESTABLISHED; + if (c->cs && cs_look(c->cs) == CS_DATA) + c->state = STATE_ESTABLISHED; } else { -- 1.7.10.4