Fix test_sru.sh fails in pazpar2 YAZ-826
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 3 Mar 2015 15:20:49 +0000 (16:20 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 3 Mar 2015 15:20:49 +0000 (16:20 +0100)
src/zoom-c.c

index b53dceb..baf66f0 100644 (file)
@@ -1082,6 +1082,8 @@ static zoom_ret do_connect_host(ZOOM_connection c, const char *logical_url)
     c->cs = cs_create_host2(logical_url, CS_FLAGS_DNS_NO_BLOCK, &add,
                             c->tproxy ? c->tproxy : c->proxy,
                             &c->proxy_mode);
+    if (!c->proxy)
+        c->proxy_mode = 0;
 
     if (c->cs && c->cs->protocol == PROTO_HTTP)
     {