Commit 7ac98ce6 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Get the correct error string for EAI_SYSTEM

parent b0e6629a
......@@ -131,7 +131,9 @@ vss_resolve(const char *addr, const char *def_port, int family, int socktype,
ret = getaddrinfo(hp, def_port, &hints, res);
free(p);
if (ret != 0)
if (ret == EAI_SYSTEM)
*errp = vstrerror(errno);
else if (ret != 0)
*errp = gai_strerror(ret);
return (ret);
......
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