X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-c.c;h=9496fb5f2f2556a09cfc75b63c1fe035b0f20f14;hb=719e0dcf2d15c08086a06457701e21c6aff3d791;hp=c28eca73acce3ea12331fbf14113882c579eef0f;hpb=e72e394106dd25d6a8a8c7c2fa677f40ef5e7eb6;p=yaz-moved-to-github.git diff --git a/src/zoom-c.c b/src/zoom-c.c index c28eca7..9496fb5 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -2,7 +2,7 @@ * Copyright (c) 2000-2004, Index Data * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.27 2004-04-28 22:44:59 adam Exp $ + * $Id: zoom-c.c,v 1.28 2004-04-30 12:43:32 adam Exp $ * * ZOOM layer for C, connections, result sets, queries. */ @@ -807,7 +807,8 @@ static zoom_ret do_connect (ZOOM_connection c) yaz_log (LOG_DEBUG, "do_connect host=%s", effective_host); - assert (!c->cs); + if (c->cs) + cs_close(c->cs); c->cs = cs_create_host (effective_host, 0, &add); if (c->cs && c->cs->protocol == PROTO_HTTP) @@ -1000,7 +1001,7 @@ static zoom_ret ZOOM_connection_send_init (ZOOM_connection c) ZOOM_options_get(c->options, "implementationName"), odr_prepend(c->odr_out, "ZOOM-C", ireq->implementationName)); - version = odr_strdup(c->odr_out, "$Revision: 1.27 $"); + version = odr_strdup(c->odr_out, "$Revision: 1.28 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; ireq->implementationVersion = odr_prepend(c->odr_out,