From d5a4d0d6a476429a3588e8e7d9e31094c28ef204 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sat, 12 Apr 2014 08:06:10 +0200 Subject: [PATCH] Fix assert in ZOOM when http connect fails YAZ-757 --- src/zoom-c.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/zoom-c.c b/src/zoom-c.c index 37b87f9..da0d867 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1974,9 +1974,11 @@ static void ZOOM_connection_do_io(ZOOM_connection c, int mask) else { /* no init request for SRW .. */ - assert(c->tasks->which == ZOOM_TASK_CONNECT); - ZOOM_connection_remove_task(c); - ZOOM_connection_set_mask(c, 0); + if (c->tasks->which == ZOOM_TASK_CONNECT) + { + ZOOM_connection_remove_task(c); + ZOOM_connection_set_mask(c, 0); + } ZOOM_connection_exec_task(c); } c->state = STATE_ESTABLISHED; -- 1.7.10.4