Commit 49d58be1 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Remove call to VSS_parse() in VSS_open(), as VSS_parse() is called in VSS_resolve() anyway.

Fixes: #817


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5580 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1b6ed4c1
......@@ -285,22 +285,13 @@ int
VSS_open(const char *str, double tmo)
{
int retval;
char *addr = NULL, *port = NULL;
int nvaddr, n, i;
struct vss_addr **vaddr;
struct pollfd pfd;
#if 0
retval = VSS_parse(str, &addr, &port);
if (retval < 0)
return (retval);
#endif
nvaddr = VSS_resolve(str, NULL, &vaddr);
if (nvaddr <= 0) {
free(addr);
free(port);
if (nvaddr <= 0)
return (-1);
}
for (n = 0; n < nvaddr; n++) {
retval = VSS_connect(vaddr[n], tmo != 0.0);
if (retval >= 0 && tmo != 0.0) {
......@@ -318,7 +309,5 @@ VSS_open(const char *str, double tmo)
for (n = 0; n < nvaddr; n++)
free(vaddr[n]);
free(vaddr);
free(addr);
free(port);
return (retval);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment