X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcomstack.c;h=74faf5ca3c728307909e18bfc00be0f2b47ec6fe;hb=8fba4cf2cac1cc543aa4c1063c78b449ebac44a7;hp=b81e89c61e5492ad861757eaed4bd1f7f735d101;hpb=05ee6a02d78ff422ddb63bb4ebbc2f5988d9a121;p=yaz-moved-to-github.git diff --git a/src/comstack.c b/src/comstack.c index b81e89c..74faf5c 100644 --- a/src/comstack.c +++ b/src/comstack.c @@ -169,7 +169,8 @@ COMSTACK cs_create_host_proxy(const char *vhost, int blocking, void **vp, CS_TYPE t; char *connect_host = 0; - cs_parse_host(vhost, &host, &t, &proto, &connect_host); + if (!cs_parse_host(vhost, &host, &t, &proto, &connect_host)) + return 0; if (t == tcpip_type) {