From 0fec07bf243fbf5a20b4881e428c053a56617e2d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 3 Mar 2015 16:20:49 +0100 Subject: [PATCH] Fix test_sru.sh fails in pazpar2 YAZ-826 --- src/zoom-c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zoom-c.c b/src/zoom-c.c index b53dceb..baf66f0 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -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) { -- 1.7.10.4