The socket() setup can be done standalone.

No need to wait for getaddrinfo() to pass an information we have
beforehand.

Signed-off-by: Thiago Farina <tfarina@chromium.org>