Fix for non-threaded resolver.
[pazpar2-moved-to-github.git] / src / connection.c
index cda779c..493d19d 100644 (file)
@@ -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));