From: Adam Dickmeiss Date: Sat, 12 Apr 2014 06:06:10 +0000 (+0200) Subject: Fix assert in ZOOM when http connect fails YAZ-757 X-Git-Tag: v5.0.23~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=64c6c63fbfbb4e42ce5e4eacb587a1b6ff11bab9;p=yaz-moved-to-github.git Fix assert in ZOOM when http connect fails YAZ-757 --- 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;