From 0d3acc914a510c397cb8f65bbd957697284c41d9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 12 Sep 2005 09:13:26 +0000 Subject: [PATCH] Fixed SEGV that could occur in Z39.50 v2 mode --- src/seshigh.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, -- 1.7.10.4