Make sure getaddrinfo and getnameinfo works as intended on Windows
authorRichard Levitte <levitte@openssl.org>
Thu, 4 Feb 2016 16:17:36 +0000 (17:17 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 4 Feb 2016 16:33:28 +0000 (17:33 +0100)
commited03c46134b1ebfcbee937c74e7f4517893be1fd
treeb8cbc8a6414bf2f6836c44104d20307ebbb25ff2
parentb31feae6de975f391bb9688231079ee745e94d5d
Make sure getaddrinfo and getnameinfo works as intended on Windows

Both getaddrinfo() and getnameinfo() have to be preceeded with a call
to BIO_sock_init().

Also, make sure to give gai_strerror() the actual error code.

Reviewed-by: Stephen Henson <steve@openssl.org>
crypto/bio/b_addr.c