Rework BIO_ADDRINFO_protocol() to return correct values
authorRichard Levitte <levitte@openssl.org>
Wed, 10 Feb 2016 21:33:44 +0000 (22:33 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 11 Feb 2016 13:13:01 +0000 (14:13 +0100)
commitc72fb77ff2644cf7edc9821a431c2faf123d4daf
treece5d7402596221ea9f2e6333afb4a5b838b40f82
parent210ac6824670b4d207f6ea7257d21adb44986ee4
Rework BIO_ADDRINFO_protocol() to return correct values

As noted already, some platforms don't fill in ai_protocol as
expected.  To circumvent that, we have BIO_ADDRINFO_protocol() to
compute a sensible answer in that case.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
crypto/bio/b_addr.c