projects
/
pazpar2-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:
3488eb7
)
Fixed NULL ptr reference (for ZOOM_connection == 0).
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 13 Oct 2008 13:06:30 +0000
(15:06 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 13 Oct 2008 13:06:30 +0000
(15:06 +0200)
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index
f2b48e4
..
a90e6c1
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-86,12
+86,11
@@
static struct connection *connection_freelist = 0;
static int connection_is_idle(struct connection *co)
{
ZOOM_connection link = co->link;
- int event = ZOOM_connection_peek_event(link);
+ int event;
- if (co->state != Conn_Open)
+ if (co->state != Conn_Open || !link)
return 0;
- link = co->link;
event = ZOOM_connection_peek_event(link);
if (event == ZOOM_EVENT_NONE ||
event == ZOOM_EVENT_END)