Fix getaddrinfo() usage

An easy one. While using an alternate server-client pair for tests, I must have stumbled on a bug (?) of getaddinfo() , which in turn had me revise these lines.

Please check that non-linux systems have the same (POSIX.1-2001) API.