Commit a119715e authored by Dafydd Harries's avatar Dafydd Harries

fix name resolution helper to look at parameter, not global

darcs-hash:20070109123111-c9803-f47cd727eb892bd43f5911d53a60f5ac7984825c.gz
parent 4a00cf92
......@@ -20,7 +20,7 @@ resolve (const gchar *name, struct hostent *ret)
struct hostent *he;
gchar buf[1024];
res = gethostbyname_r (server, ret, buf, sizeof (buf) / sizeof (gchar), &he,
res = gethostbyname_r (name, ret, buf, sizeof (buf) / sizeof (gchar), &he,
&h_errno);
return (res == 0);
}
......
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