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:
e1993dd
)
Fix for non-threaded resolver.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 28 Sep 2009 21:46:26 +0000
(23:46 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 28 Sep 2009 21:46:26 +0000
(23:46 +0200)
For the non-threaded host resolver, create_host may return NULL. This
in turn will make database-host a NULL ptr. This fixes
client_prep_connection to return if that's the case.
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index
cda779c
..
493d19d
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-419,6
+419,9
@@
int client_prep_connection(struct client *cl,
if (zproxy && zproxy[0] == '\0')
zproxy = 0;
+ if (!host)
+ return 0;
+
co = client_get_connection(cl);
yaz_log(YLOG_DEBUG, "Client prep %s", client_get_url(cl));