From: Adam Dickmeiss Date: Mon, 12 Sep 2005 09:13:26 +0000 (+0000) Subject: Fixed SEGV that could occur in Z39.50 v2 mode X-Git-Tag: YAZ.2.1.10~69 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=0d3acc914a510c397cb8f65bbd957697284c41d9;p=yaz-moved-to-github.git Fixed SEGV that could occur in Z39.50 v2 mode --- diff --git a/src/seshigh.c b/src/seshigh.c index f398c25..e395981 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.61 2005-09-11 18:39:11 adam Exp $ + * $Id: seshigh.c,v 1.62 2005-09-12 09:13:26 adam Exp $ */ /** * \file seshigh.c @@ -243,6 +243,7 @@ static void do_close_req(association *a, int reason, char *message, request_release(req); yaz_log(log_requestdetail, "v2 client. No Close PDU"); iochan_setevent(a->client_chan, EVENT_TIMEOUT); /* force imm close */ + a->cs_put_mask = 0; } a->state = ASSOC_DEAD; } @@ -1775,7 +1776,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.61 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.62 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode,