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:
901baae
)
Fixed ZOOM connect for OpenBSD
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 6 May 2002 07:33:50 +0000
(07:33 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 6 May 2002 07:33:50 +0000
(07:33 +0000)
CHANGELOG
patch
|
blob
|
history
zoom/zoom-c.c
patch
|
blob
|
history
diff --git
a/CHANGELOG
b/CHANGELOG
index
af5986d
..
59cfb09
100644
(file)
--- a/
CHANGELOG
+++ b/
CHANGELOG
@@
-2,6
+2,11
@@
Possible compatibility problems with earlier versions marked with '*'.
--- 1.8.7 2002/MM/DD
--- 1.8.7 2002/MM/DD
+Fixed bug in ZOOM connect that occurred on OpenBSD (maybe others). Patch
+by Oleg Kolobov.
+
+Fixed bug in zget for parameter ExtendedServicesResponse.
+
Fix OID for ILL.
--- 1.8.6 2002/03/25
Fix OID for ILL.
--- 1.8.6 2002/03/25
diff --git
a/zoom/zoom-c.c
b/zoom/zoom-c.c
index
481f904
..
fdc1d74
100644
(file)
--- a/
zoom/zoom-c.c
+++ b/
zoom/zoom-c.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: zoom-c.c,v 1.24 2002-02-28 13:21:16 adam Exp $
+ * $Id: zoom-c.c,v 1.25 2002-05-06 07:33:50 adam Exp $
*
* ZOOM layer for C, connections, result sets, queries.
*/
*
* ZOOM layer for C, connections, result sets, queries.
*/
@@
-519,7
+519,15
@@
static int do_connect (ZOOM_connection c)
{
int ret = cs_connect (c->cs, add);
yaz_log (LOG_DEBUG, "cs_connect returned %d", ret);
{
int ret = cs_connect (c->cs, add);
yaz_log (LOG_DEBUG, "cs_connect returned %d", ret);
- if (ret >= 0)
+ if (ret == 0)
+ {
+ ZOOM_Event event = ZOOM_Event_create(ZOOM_EVENT_CONNECT);
+ ZOOM_connection_put_event(c, event);
+ ZOOM_connection_send_init(c);
+ c->state = STATE_ESTABLISHED;
+ return 1;
+ }
+ else if (ret > 0)
{
c->state = STATE_CONNECTING;
c->mask = ZOOM_SELECT_EXCEPT;
{
c->state = STATE_CONNECTING;
c->mask = ZOOM_SELECT_EXCEPT;