projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fecc9f
)
Handle unexpected HTTP closed sessions better
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 22 Dec 2003 19:46:22 +0000
(19:46 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 22 Dec 2003 19:46:22 +0000
(19:46 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
0b0e8fe
..
3d5861f
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: client.c,v 1.216 2003-12-20 00:51:19 adam Exp $
+ * $Id: client.c,v 1.217 2003-12-22 19:46:22 adam Exp $
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-2140,7
+2140,7
@@
static int cmd_explain(const char *arg)
#if HAVE_XML2
if (!conn)
cmd_open(0);
#if HAVE_XML2
if (!conn)
cmd_open(0);
- if (1)
+ if (conn)
{
Z_SRW_PDU *sr = 0;
{
Z_SRW_PDU *sr = 0;
@@
-2168,6
+2168,8
@@
static int cmd_find(const char *arg)
#if HAVE_XML2
if (!conn)
cmd_open(0);
#if HAVE_XML2
if (!conn)
cmd_open(0);
+ if (!conn)
+ return 0;
if (!send_SRW_searchRequest(arg))
return 0;
#else
if (!send_SRW_searchRequest(arg))
return 0;
#else
@@
-2434,6
+2436,8
@@
static int cmd_show(const char *arg)
#if HAVE_XML2
if (!conn)
cmd_open(0);
#if HAVE_XML2
if (!conn)
cmd_open(0);
+ if (!conn)
+ return 0;
if (!send_SRW_presentRequest(arg))
return 0;
#else
if (!send_SRW_presentRequest(arg))
return 0;
#else