/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2012 Index Data
* See the file LICENSE for details.
*/
/**
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)
{