From: Adam Dickmeiss Date: Fri, 26 Apr 2013 16:02:47 +0000 (+0200) Subject: yaz-client: fix crash on connect X-Git-Tag: v4.2.56~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=df7a36a7eadf9d8b797a1199fe5229d94e58fe1f;p=yaz-moved-to-github.git yaz-client: fix crash on connect Problem introduced by 7e90f2cc9a54 . --- diff --git a/client/client.c b/client/client.c index 89bc0fa..0a36651 100644 --- a/client/client.c +++ b/client/client.c @@ -702,7 +702,7 @@ static int session_connect_base(const char *arg, const char **basep) strncpy(type_and_host, arg, sizeof(type_and_host)-1); type_and_host[sizeof(type_and_host)-1] = '\0'; - conn = cs_create_host_proxy(yazProxy, 1, &add, yazProxy); + conn = cs_create_host_proxy(arg, 1, &add, yazProxy); if (!conn) { printf("Could not resolve address %s\n", arg);