From 985066ac6dfae6ac68960044fa05b4f7ea782b86 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 19 Jun 2003 21:10:03 +0000 Subject: [PATCH] client does not close socket if decoding of PDU failed --- client/client.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/client/client.c b/client/client.c index 3b95056..c7c6e1b 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.200 2003-06-11 18:36:57 adam Exp $ + * $Id: client.c,v 1.201 2003-06-19 21:10:03 adam Exp $ */ #include @@ -2831,17 +2831,6 @@ int cmd_set_marcdump(const char* arg) return 1; } -int cmd_set_proxy(const char* arg) -{ - if(yazProxy) free(yazProxy); - yazProxy=NULL; - - if(strlen(arg) > 1) { - yazProxy=strdup(arg); - } - return 1; -} - /* this command takes 3 arge {name class oid} */ @@ -3156,8 +3145,9 @@ void wait_and_handle_response() fprintf(f, "---------\n"); if (apdu_file) z_GDU(print, &gdu, 0, 0); - close_session (); - break; + if (conn && cs_more(conn)) + continue; + break; } if (ber_file) odr_dumpBER(ber_file, netbuffer, res); -- 1.7.10.4